mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Fix tests
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
ddf073a6ff
commit
15a68ec70c
@ -39,7 +39,7 @@ public class BtcNodesSetupPreferencesTest {
|
|||||||
Preferences delegate = mock(Preferences.class);
|
Preferences delegate = mock(Preferences.class);
|
||||||
when(delegate.getBitcoinNodesOptionOrdinal()).thenReturn(PUBLIC.ordinal());
|
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));
|
List<BtcNode> nodes = preferences.selectPreferredNodes(mock(BtcNodes.class));
|
||||||
|
|
||||||
assertTrue(nodes.isEmpty());
|
assertTrue(nodes.isEmpty());
|
||||||
@ -51,7 +51,7 @@ public class BtcNodesSetupPreferencesTest {
|
|||||||
when(delegate.getBitcoinNodesOptionOrdinal()).thenReturn(CUSTOM.ordinal());
|
when(delegate.getBitcoinNodesOptionOrdinal()).thenReturn(CUSTOM.ordinal());
|
||||||
when(delegate.getBitcoinNodes()).thenReturn("aaa.onion,bbb.onion");
|
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));
|
List<BtcNode> nodes = preferences.selectPreferredNodes(mock(BtcNodes.class));
|
||||||
|
|
||||||
assertEquals(2, nodes.size());
|
assertEquals(2, nodes.size());
|
||||||
|
@ -102,6 +102,8 @@ public class TestFilter {
|
|||||||
1,
|
1,
|
||||||
1,
|
1,
|
||||||
1,
|
1,
|
||||||
|
Collections.emptyList(),
|
||||||
|
Collections.emptyList(),
|
||||||
Collections.emptyList()
|
Collections.emptyList()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -77,6 +77,8 @@ public class UserPayloadModelVOTest {
|
|||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
|
Lists.newArrayList(),
|
||||||
|
Lists.newArrayList(),
|
||||||
Lists.newArrayList()));
|
Lists.newArrayList()));
|
||||||
|
|
||||||
vo.setRegisteredArbitrator(ArbitratorTest.getArbitratorMock());
|
vo.setRegisteredArbitrator(ArbitratorTest.getArbitratorMock());
|
||||||
|
Loading…
Reference in New Issue
Block a user