package com.xeiam.xchange.coinbaseex;

import com.xeiam.xchange.ExchangeFactory;
import com.xeiam.xchange.currency.CurrencyPair;
import org.junit.Test;

import java.io.IOException;
import java.util.Arrays;

import static org.fest.assertions.api.Assertions.assertThat;

public class CoinbaseExExchangeTest {

    @Test
    public void coinbaseShouldBeInstantiatedWithoutAnExceptionWhenUsingDefaultSpecification() {
        ExchangeFactory.INSTANCE.createExchange(CoinbaseExExchange.class.getCanonicalName());
    }

  @Test
  public void testCoinbaseCurrencies() throws IOException {
    CoinbaseExExchange exchange = new CoinbaseExExchange();
    exchange.applySpecification(exchange.getDefaultExchangeSpecification());

    assertThat(exchange.getPollingMarketDataService().getExchangeSymbols()).isEqualTo(
        Arrays.asList(new CurrencyPair("BTC/USD"), new CurrencyPair("BTC/GBP"), new CurrencyPair("BTC/EUR"))
    );
  }

}

@@ -305,18 +305,16 @@
  %7B%0A%0A
-  
   @Test%0A
     
@@ -309,18 +309,16 @@
   @Test%0A
-  
   public
@@ -407,20 +407,16 @@
 ) %7B%0A    
- 
-   
 Exchange
@@ -493,18 +493,16 @@
 ame());%0A
-  
   %7D%0A%0A  @

format code to XChange code style