1 package org.oxerr.okcoin.rest; 2 3 import static org.junit.Assert.assertEquals; 4 5 import org.junit.Test; 6 import org.knowm.xchange.Exchange; 7 import org.knowm.xchange.ExchangeFactory; 8 import org.knowm.xchange.ExchangeSpecification; 9 import org.knowm.xchange.dto.meta.RateLimit; 10 11 public class OKCoinExchangeTest { 12 13 @Test 14 public void test() { 15 ExchangeSpecification spec = new ExchangeSpecification(OKCoinExchange.class); 16 Exchange exchange = ExchangeFactory.INSTANCE.createExchange(spec); 17 RateLimit[] rateLimits = exchange.getExchangeMetaData().getPrivateRateLimits(); 18 assertEquals(1, rateLimits.length); 19 } 20 21 }