@Test(expected = IllegalArgumentException.class) public void testExchangeAdapterThrowsExceptionIfBuyFeeIsMissing() { PowerMock.reset(otherConfig); expect(otherConfig.getItem("buy-fee")).andReturn(""); expect(otherConfig.getItem("sell-fee")).andReturn("0.5"); PowerMock.replayAll(); final ItBitExchangeAdapter exchangeAdapter = new ItBitExchangeAdapter(); exchangeAdapter.init(exchangeConfig); PowerMock.verifyAll(); }
@Override public void init(ExchangeConfig config) { LOG.info(() -> "About to initialise itBit ExchangeConfig: " + config); setAuthenticationConfig(config); setNetworkConfig(config); setOtherConfig(config); nonce = System.currentTimeMillis() / 1000; initSecureMessageLayer(); initGson(); }
ItBitExchangeAdapter extends AbstractExchangeAdapter implements ExchangeAdapter { @Override public void init(ExchangeConfig config) { LOG.info(() -> "About to initialise itBit ExchangeConfig: " + config); setAuthenticationConfig(config); setNetworkConfig(config); setOtherConfig(config); nonce = System.currentTimeMillis() / 1000; initSecureMessageLayer(); initGson(); } }
ItBitExchangeAdapter extends AbstractExchangeAdapter implements ExchangeAdapter { @Override public void init(ExchangeConfig config) { LOG.info(() -> "About to initialise itBit ExchangeConfig: " + config); setAuthenticationConfig(config); setNetworkConfig(config); setOtherConfig(config); nonce = System.currentTimeMillis() / 1000; initSecureMessageLayer(); initGson(); }  }
ItBitExchangeAdapter extends AbstractExchangeAdapter implements ExchangeAdapter { @Override public void init(ExchangeConfig config) { LOG.info(() -> "About to initialise itBit ExchangeConfig: " + config); setAuthenticationConfig(config); setNetworkConfig(config); setOtherConfig(config); nonce = System.currentTimeMillis() / 1000; initSecureMessageLayer(); initGson(); }  @Override void init(ExchangeConfig config); @Override String createOrder(
      String marketId, OrderType orderType, BigDecimal quantity, BigDecimal price); @Override boolean cancelOrder(String orderId, String marketIdNotNeeded); @Override List<OpenOrder> getYourOpenOrders(String marketId); @Override MarketOrderBook getMarketOrders(String marketId); @Override BigDecimal getLatestMarketPrice(String marketId); @Override BalanceInfo getBalanceInfo(); @Override BigDecimal getPercentageOfBuyOrderTakenForExchangeFee(String marketId); @Override BigDecimal getPercentageOfSellOrderTakenForExchangeFee(String marketId); @Override String getImplName(); @Override Ticker getTicker(String marketId); }
ItBitExchangeAdapter extends AbstractExchangeAdapter implements ExchangeAdapter { @Override public void init(ExchangeConfig config) { LOG.info(() -> "About to initialise itBit ExchangeConfig: " + config); setAuthenticationConfig(config); setNetworkConfig(config); setOtherConfig(config); nonce = System.currentTimeMillis() / 1000; initSecureMessageLayer(); initGson(); }  @Override void init(ExchangeConfig config); @Override String createOrder(
      String marketId, OrderType orderType, BigDecimal quantity, BigDecimal price); @Override boolean cancelOrder(String orderId, String marketIdNotNeeded); @Override List<OpenOrder> getYourOpenOrders(String marketId); @Override MarketOrderBook getMarketOrders(String marketId); @Override BigDecimal getLatestMarketPrice(String marketId); @Override BalanceInfo getBalanceInfo(); @Override BigDecimal getPercentageOfBuyOrderTakenForExchangeFee(String marketId); @Override BigDecimal getPercentageOfSellOrderTakenForExchangeFee(String marketId); @Override String getImplName(); @Override Ticker getTicker(String marketId);  }