mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Fix missing params
This commit is contained in:
parent
3f4d6e6f23
commit
8baf34a643
@ -94,11 +94,10 @@ public class PreferencesTest {
|
||||
when(payload.getPreferredTradeCurrency()).thenReturn(usd);
|
||||
when(payload.getFiatCurrencies()).thenReturn(fiatCurrencies);
|
||||
|
||||
preferences.readPersisted();
|
||||
|
||||
preferences.readPersisted(() -> {
|
||||
assertEquals(7, preferences.getFiatCurrenciesAsObservable().size());
|
||||
assertTrue(preferences.getFiatCurrenciesAsObservable().contains(usd));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -115,9 +114,9 @@ public class PreferencesTest {
|
||||
when(payload.getPreferredTradeCurrency()).thenReturn(new FiatCurrency("USD"));
|
||||
when(payload.getCryptoCurrencies()).thenReturn(cryptoCurrencies);
|
||||
|
||||
preferences.readPersisted();
|
||||
|
||||
preferences.readPersisted(() -> {
|
||||
assertTrue(preferences.getCryptoCurrenciesAsObservable().contains(dash));
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -136,9 +135,8 @@ public class PreferencesTest {
|
||||
when(payload.getPreferredTradeCurrency()).thenReturn(usd);
|
||||
when(payload.getFiatCurrencies()).thenReturn(fiatCurrencies);
|
||||
|
||||
preferences.readPersisted();
|
||||
|
||||
preferences.readPersisted(() -> {
|
||||
assertEquals("US Dollar (USD)", preferences.getFiatCurrenciesAsObservable().get(0).getNameAndCode());
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -136,7 +136,8 @@ public class P2PNetworkLoad extends Metric implements MessageListener, SetupList
|
||||
new PersistenceManager<>(storageDir, persistenceProtoResolver, corruptedStorageFileHandler), maxConnections);
|
||||
|
||||
// init file storage
|
||||
peerManager.readPersisted();
|
||||
peerManager.readPersisted(() -> {
|
||||
});
|
||||
|
||||
PeerExchangeManager peerExchangeManager = new PeerExchangeManager(networkNode, seedNodeRepository,
|
||||
peerManager);
|
||||
|
@ -137,8 +137,10 @@ public class TestState {
|
||||
sequenceNrMapPersistenceManager, clock, MAX_SEQUENCE_NUMBER_MAP_SIZE_BEFORE_PURGE);
|
||||
|
||||
// Currently TestState only supports reading ProtectedStorageEntries off disk.
|
||||
p2PDataStorage.readFromResources("unused");
|
||||
p2PDataStorage.readPersisted();
|
||||
p2PDataStorage.readFromResources("unused", () -> {
|
||||
});
|
||||
p2PDataStorage.readPersisted(() -> {
|
||||
});
|
||||
|
||||
p2PDataStorage.addHashMapChangedListener(hashMapChangedListener);
|
||||
p2PDataStorage.addAppendOnlyDataStoreListener(appendOnlyDataStoreListener);
|
||||
|
Loading…
Reference in New Issue
Block a user