Skip to content

Commit

Permalink
Making all online tests @ignore to allow built to work with no Intern…
Browse files Browse the repository at this point in the history
…et connection. Fixes bitrich-info#357
  • Loading branch information
TSavo committed Mar 2, 2020
1 parent e749233 commit 7315c55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import info.bitrich.xchangestream.core.ProductSubscription;
import info.bitrich.xchangestream.core.StreamingExchangeFactory;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.knowm.xchange.ExchangeSpecification;
import org.knowm.xchange.currency.CurrencyPair;
Expand All @@ -12,6 +13,7 @@
public class BinanceTest {

@Test
@Ignore
public void channelCreateUrlTest() {
BinanceStreamingExchange exchange = (BinanceStreamingExchange) StreamingExchangeFactory.INSTANCE
.createExchange(BinanceStreamingExchange.class.getName());
Expand All @@ -27,6 +29,7 @@ public void channelCreateUrlTest() {
}

@Test
@Ignore
public void channelCreateUrlWithUpdateFrequencyTest() {
ProductSubscription.ProductSubscriptionBuilder builder = ProductSubscription.create();
builder.addTicker(CurrencyPair.BTC_USD).addTicker(CurrencyPair.DASH_BTC).addOrderbook(CurrencyPair.ETH_BTC);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import io.reactivex.Observable;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.marketdata.OrderBook;
Expand Down Expand Up @@ -61,18 +62,21 @@ private <T> void awaitDataCount(Observable<T> observable) {
}

@Test
@Ignore
public void shouldReceiveBooks() {
Observable<OrderBook> orderBookObservable = streamingMarketDataService.getOrderBook(xbtUsd);
awaitDataCount(orderBookObservable);
}

@Test
@Ignore
public void shouldReceiveRawTickers() {
Observable<BitmexTicker> rawTickerObservable = streamingMarketDataService.getRawTicker(xbtUsd);
awaitDataCount(rawTickerObservable);
}

@Test
@Ignore
public void shouldReceiveTickers() {
Observable<Ticker> tickerObservable = streamingMarketDataService.getTicker(xbtUsd);
awaitDataCount(tickerObservable);
Expand All @@ -85,6 +89,7 @@ public void shouldReceiveTrades() {
}

@Test
@Ignore
public void shouldHaveNoBookErrors() {
streamingMarketDataService.getOrderBook(xbtUsd)
.test()
Expand Down

0 comments on commit 7315c55

Please sign in to comment.