mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Fix tests
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
c6b30b00cc
commit
450814b926
@ -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<BtcNode> 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<BtcNode> nodes = preferences.selectPreferredNodes(mock(BtcNodes.class));
|
||||
|
||||
assertEquals(2, nodes.size());
|
||||
|
@ -102,6 +102,8 @@ public class TestFilter {
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
Collections.emptyList(),
|
||||
Collections.emptyList(),
|
||||
Collections.emptyList()
|
||||
);
|
||||
}
|
||||
|
@ -77,6 +77,8 @@ public class UserPayloadModelVOTest {
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
Lists.newArrayList(),
|
||||
Lists.newArrayList(),
|
||||
Lists.newArrayList()));
|
||||
|
||||
vo.setRegisteredArbitrator(ArbitratorTest.getArbitratorMock());
|
||||
|
Loading…
Reference in New Issue
Block a user