mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Fix test, add singleton check for ChargeBackRisk
This commit is contained in:
parent
e3bd3a99e3
commit
ace881cc04
@ -32,6 +32,7 @@ import bisq.core.notifications.alerts.MyOfferTakenEvents;
|
||||
import bisq.core.notifications.alerts.TradeEvents;
|
||||
import bisq.core.notifications.alerts.market.MarketAlerts;
|
||||
import bisq.core.notifications.alerts.price.PriceAlert;
|
||||
import bisq.core.payment.ChargeBackRisk;
|
||||
import bisq.core.payment.TradeLimits;
|
||||
import bisq.core.proto.network.CoreNetworkProtoResolver;
|
||||
import bisq.core.proto.persistable.CorePersistenceProtoResolver;
|
||||
@ -131,6 +132,7 @@ public class GuiceSetupTest {
|
||||
assertSingleton(TradeEvents.class);
|
||||
assertSingleton(PriceAlert.class);
|
||||
assertSingleton(MarketAlerts.class);
|
||||
assertSingleton(ChargeBackRisk.class);
|
||||
|
||||
assertNotSingleton(Storage.class);
|
||||
}
|
||||
|
@ -3,6 +3,8 @@ package bisq.seednode;
|
||||
import bisq.core.app.BisqEnvironment;
|
||||
import bisq.core.app.misc.AppSetupWithP2PAndDAO;
|
||||
import bisq.core.app.misc.ModuleForAppWithP2p;
|
||||
import bisq.core.locale.CurrencyUtil;
|
||||
import bisq.core.locale.Res;
|
||||
|
||||
import org.springframework.mock.env.MockPropertySource;
|
||||
|
||||
@ -13,6 +15,9 @@ import org.junit.Test;
|
||||
public class GuiceSetupTest {
|
||||
@Test
|
||||
public void testGuiceSetup() {
|
||||
Res.setup();
|
||||
CurrencyUtil.setup();
|
||||
|
||||
ModuleForAppWithP2p module = new ModuleForAppWithP2p(new BisqEnvironment(new MockPropertySource()));
|
||||
Guice.createInjector(module).getInstance(AppSetupWithP2PAndDAO.class);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user