Search in sources :

Example 1 with ExchangeService

use of tech.cassandre.trading.bot.service.ExchangeService in project cassandre-trading-bot by cassandre-tech.

the class Issue543Test method checkExchangeServiceGetter.

@Test
@DisplayName("Check getter for exchange service in strategies")
public void checkExchangeServiceGetter() {
    final ExchangeService exchangeService = strategy.getExchangeService();
    assertNotNull(exchangeService);
    assertEquals(1, exchangeService.getAvailableCurrencyPairs().size());
}
Also used : ExchangeService(tech.cassandre.trading.bot.service.ExchangeService) Test(org.junit.jupiter.api.Test) BaseTest(tech.cassandre.trading.bot.test.util.junit.BaseTest) SpringBootTest(org.springframework.boot.test.context.SpringBootTest) DisplayName(org.junit.jupiter.api.DisplayName)

Aggregations

DisplayName (org.junit.jupiter.api.DisplayName)1 Test (org.junit.jupiter.api.Test)1 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)1 ExchangeService (tech.cassandre.trading.bot.service.ExchangeService)1 BaseTest (tech.cassandre.trading.bot.test.util.junit.BaseTest)1