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:
parent
47c7910e88
commit
ba1d493caf
2 changed files with 20 additions and 0 deletions
|
@ -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"
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
18
seednode/src/test/java/bisq/seednode/GuiceSetupTest.java
Normal file
18
seednode/src/test/java/bisq/seednode/GuiceSetupTest.java
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue