-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3043 from christophsturm/test-guice-setup-and-fix
Test guice setup and fix
- Loading branch information
Showing
5 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package bisq.seednode; | ||
|
||
import bisq.core.app.BisqEnvironment; | ||
import bisq.core.app.misc.AppSetupWithP2PAndDAO; | ||
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).getInstance(AppSetupWithP2PAndDAO.class); | ||
} | ||
} |