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"))
    );
  }

}

@@ -784,17 +784,19 @@
 ()).
-isEqualTo
+containsAll
 (%0A  

change test to be more robust