diff --git a/src/test/java/bisq/price/AbstractExchangeRateProviderTest.java b/src/test/java/bisq/price/AbstractExchangeRateProviderTest.java index 3040be4..8e25845 100644 --- a/src/test/java/bisq/price/AbstractExchangeRateProviderTest.java +++ b/src/test/java/bisq/price/AbstractExchangeRateProviderTest.java @@ -46,12 +46,12 @@ private void checkProviderCurrencyPairs(ExchangeRateProvider exchangeProvider, S .collect(Collectors.toSet()); Set supportedFiatCurrenciesRetrieved = exchangeProvider.getSupportedFiatCurrencies().stream() - .filter(f -> retrievedRatesCurrencies.contains(f)) + .filter(retrievedRatesCurrencies::contains) .collect(Collectors.toCollection(TreeSet::new)); log.info("Retrieved rates for supported fiat currencies: " + supportedFiatCurrenciesRetrieved); Set supportedCryptoCurrenciesRetrieved = exchangeProvider.getSupportedCryptoCurrencies().stream() - .filter(c -> retrievedRatesCurrencies.contains(c)) + .filter(retrievedRatesCurrencies::contains) .collect(Collectors.toCollection(TreeSet::new)); log.info("Retrieved rates for supported altcoins: " + supportedCryptoCurrenciesRetrieved); @@ -59,7 +59,7 @@ private void checkProviderCurrencyPairs(ExchangeRateProvider exchangeProvider, S exchangeProvider.getSupportedCryptoCurrencies(), exchangeProvider.getSupportedFiatCurrencies()); - Set unsupportedCurrencies = Sets.difference(retrievedRatesCurrencies, supportedCurrencies); + Set unsupportedCurrencies = Sets.difference(retrievedRatesCurrencies, supportedCurrencies); assertTrue(unsupportedCurrencies.isEmpty(), "Retrieved exchange rates contain unsupported currencies: " + unsupportedCurrencies); }