From 45636f160ed3c124df25d50062dad42f4322fa65 Mon Sep 17 00:00:00 2001 From: cd2357 Date: Sat, 9 May 2020 18:32:57 +0200 Subject: [PATCH] Fix unit test Fix a unit test that failed after a few related classes were refactored. --- .../src/test/java/bisq/price/mining/FeeRateServiceTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pricenode/src/test/java/bisq/price/mining/FeeRateServiceTest.java b/pricenode/src/test/java/bisq/price/mining/FeeRateServiceTest.java index ebab0f4afee..f3e9147aafc 100644 --- a/pricenode/src/test/java/bisq/price/mining/FeeRateServiceTest.java +++ b/pricenode/src/test/java/bisq/price/mining/FeeRateServiceTest.java @@ -113,7 +113,7 @@ private void doSanityChecksForRetrievedData(Map retrievedData, l */ private BitcoinFeeRateProvider buildDummyReachableBitcoinFeeRateProvider(long feeRate) { GenericXmlApplicationContext ctx = new GenericXmlApplicationContext(); - BitcoinFeeRateProvider dummyProvider = new BitcoinFeeRateProvider(ctx.getEnvironment()) { + BitcoinFeeRateProvider dummyProvider = new BitcoinFeeRateProvider.First(ctx.getEnvironment()) { @Override protected FeeRate doGet() { return new FeeRate("BTC", feeRate, Instant.now().getEpochSecond()); @@ -136,7 +136,7 @@ protected FeeRate doGet() { */ private BitcoinFeeRateProvider buildDummyUnreachableBitcoinFeeRateProvider() throws RestClientException{ GenericXmlApplicationContext ctx = new GenericXmlApplicationContext(); - BitcoinFeeRateProvider dummyProvider = new BitcoinFeeRateProvider(ctx.getEnvironment()) { + BitcoinFeeRateProvider dummyProvider = new BitcoinFeeRateProvider.First(ctx.getEnvironment()) { @Override protected FeeRate doGet() { throw new RestClientException("Simulating connection error when trying to reach API endpoint");