1
0
Fork 0
mirror of https://github.com/bisq-network/bisq.git synced 2025-03-13 11:09:10 +01:00

test the seednode's guice setup

This commit is contained in:
Christoph Sturm 2019-08-01 13:11:06 +02:00
parent 47c7910e88
commit ba1d493caf
2 changed files with 20 additions and 0 deletions
build.gradle
seednode/src/test/java/bisq/seednode

View file

@ -404,6 +404,8 @@ configure(project(':seednode')) {
runtime "org.bouncycastle:bcprov-jdk15on:$bcVersion"
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
testCompile "org.springframework:spring-test:$springVersion"
}
}

View file

@ -0,0 +1,18 @@
package bisq.seednode;
import bisq.core.app.BisqEnvironment;
import bisq.core.app.misc.ModuleForAppWithP2p;
import org.springframework.mock.env.MockPropertySource;
import com.google.inject.Guice;
import org.junit.Test;
public class GuiceSetupTest {
@Test
public void testGuiceSetup() {
ModuleForAppWithP2p module = new ModuleForAppWithP2p(new BisqEnvironment(new MockPropertySource()));
Guice.createInjector(module);
}
}