BTCMarketsExchange extends BaseExchange implements Exchange { @Override public ExchangeSpecification getDefaultExchangeSpecification() { ExchangeSpecification exchangeSpecification = new ExchangeSpecification(this.getClass()); exchangeSpecification.setSslUri("https: exchangeSpecification.setHost("btcmarkets.net"); exchangeSpecification.setPort(80); exchangeSpecification.setExchangeName("BTCMarkets"); return exchangeSpecification; }  @Override void applySpecification(ExchangeSpecification exchangeSpecification); @Override ExchangeSpecification getDefaultExchangeSpecification(); @Override SynchronizedValueFactory<Long> getNonceFactory(); void setNonceFactory(SynchronizedValueFactory<Long> nonceFactory); static final String CURRENCY_PAIR; }
@Test public void shouldCreateDefaultExchangeSpecification() { ExchangeSpecification specification = exchange.getDefaultExchangeSpecification(); assertThat(specification.getExchangeClassName()) .isEqualTo(BTCMarketsExchange.class.getCanonicalName()); assertThat(specification.getExchangeName()).isEqualTo("BTCMarkets"); assertThat(specification.getSslUri()).isEqualTo("https: assertThat(specification.getHost()).isEqualTo("btcmarkets.net"); assertThat(specification.getPort()).isEqualTo(80); assertThat(specification.getApiKey()).isNull(); assertThat(specification.getSecretKey()).isNull(); }