Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Making all online tests @Ignore to allow build to work with no Internet connection. Fixes #357 #530

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -63,18 +63,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 @@ -87,6 +90,7 @@ public void shouldReceiveTrades() {
}

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