From 15a68ec70cdc46779d58fb686cab423b61b0511d Mon Sep 17 00:00:00 2001 From: HenrikJannsen Date: Fri, 7 Jun 2024 22:57:51 +0700 Subject: [PATCH] Fix tests Signed-off-by: HenrikJannsen --- .../bisq/core/btc/nodes/BtcNodesSetupPreferencesTest.java | 4 ++-- core/src/test/java/bisq/core/filter/TestFilter.java | 2 ++ core/src/test/java/bisq/core/user/UserPayloadModelVOTest.java | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/bisq/core/btc/nodes/BtcNodesSetupPreferencesTest.java b/core/src/test/java/bisq/core/btc/nodes/BtcNodesSetupPreferencesTest.java index 8444dcc1a3..55a1ec5aec 100644 --- a/core/src/test/java/bisq/core/btc/nodes/BtcNodesSetupPreferencesTest.java +++ b/core/src/test/java/bisq/core/btc/nodes/BtcNodesSetupPreferencesTest.java @@ -39,7 +39,7 @@ public class BtcNodesSetupPreferencesTest { Preferences delegate = mock(Preferences.class); when(delegate.getBitcoinNodesOptionOrdinal()).thenReturn(PUBLIC.ordinal()); - BtcNodesSetupPreferences preferences = new BtcNodesSetupPreferences(delegate, Config.DEFAULT_NUM_CONNECTIONS_FOR_BTC_PUBLIC); + BtcNodesSetupPreferences preferences = new BtcNodesSetupPreferences(delegate, Config.DEFAULT_NUM_CONNECTIONS_FOR_BTC_PUBLIC, null); List nodes = preferences.selectPreferredNodes(mock(BtcNodes.class)); assertTrue(nodes.isEmpty()); @@ -51,7 +51,7 @@ public class BtcNodesSetupPreferencesTest { when(delegate.getBitcoinNodesOptionOrdinal()).thenReturn(CUSTOM.ordinal()); when(delegate.getBitcoinNodes()).thenReturn("aaa.onion,bbb.onion"); - BtcNodesSetupPreferences preferences = new BtcNodesSetupPreferences(delegate, Config.DEFAULT_NUM_CONNECTIONS_FOR_BTC_PUBLIC); + BtcNodesSetupPreferences preferences = new BtcNodesSetupPreferences(delegate, Config.DEFAULT_NUM_CONNECTIONS_FOR_BTC_PUBLIC, null); List nodes = preferences.selectPreferredNodes(mock(BtcNodes.class)); assertEquals(2, nodes.size()); diff --git a/core/src/test/java/bisq/core/filter/TestFilter.java b/core/src/test/java/bisq/core/filter/TestFilter.java index 1037c0a597..f9343c0464 100644 --- a/core/src/test/java/bisq/core/filter/TestFilter.java +++ b/core/src/test/java/bisq/core/filter/TestFilter.java @@ -102,6 +102,8 @@ public class TestFilter { 1, 1, 1, + Collections.emptyList(), + Collections.emptyList(), Collections.emptyList() ); } diff --git a/core/src/test/java/bisq/core/user/UserPayloadModelVOTest.java b/core/src/test/java/bisq/core/user/UserPayloadModelVOTest.java index 50397cd7ae..930bedadb7 100644 --- a/core/src/test/java/bisq/core/user/UserPayloadModelVOTest.java +++ b/core/src/test/java/bisq/core/user/UserPayloadModelVOTest.java @@ -77,6 +77,8 @@ public class UserPayloadModelVOTest { 0, 0, 0, + Lists.newArrayList(), + Lists.newArrayList(), Lists.newArrayList())); vo.setRegisteredArbitrator(ArbitratorTest.getArbitratorMock());