bump guice version and start testing desktop guice setup

This commit is contained in:
Christoph Sturm 2019-08-05 11:03:10 +02:00
parent 276a506122
commit 20e011178e
3 changed files with 25 additions and 2 deletions

View File

@ -176,7 +176,7 @@ configure(project(':common')) {
compile "ch.qos.logback:logback-classic:$logbackVersion"
compile 'com.google.code.findbugs:jsr305:3.0.2'
compile 'com.google.guava:guava:20.0'
compile('com.google.inject:guice:4.1.0') {
compile('com.google.inject:guice:4.2.2') {
exclude(module: 'guava')
}
compile("com.github.bisq-network.bitcoinj:bitcoinj-core:$bitcoinjVersion") {

View File

@ -0,0 +1,24 @@
package bisq.desktop;
import bisq.desktop.app.BisqAppModule;
import bisq.desktop.common.view.CachingViewLoader;
import bisq.core.app.AvoidStandbyModeService;
import bisq.core.app.BisqEnvironment;
import org.springframework.mock.env.MockPropertySource;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.junit.Test;
public class GuiceSetupTest {
@Test
public void testGuiceSetup() {
BisqAppModule module = new BisqAppModule(new BisqEnvironment(new MockPropertySource()));
Injector injector = Guice.createInjector(module);
injector.getInstance(CachingViewLoader.class);
injector.getInstance(AvoidStandbyModeService.class);
}
}

View File

@ -42,7 +42,6 @@ dependencyVerification {
'ch.qos.logback:logback-core:4cd46fa17d77057b39160058df2f21ebbc2aded51d0edcc25d2c1cecc042a005',
'com.google.code.findbugs:jsr305:766ad2a0783f2687962c8ad74ceecc38a28b9f72a2d085ee438b7813e928d0c7',
'com.google.guava:guava:36a666e3b71ae7f0f0dca23654b67e086e6c93d192f60ba5dfd5519db6c288c8',
'com.google.inject:guice:9b9df27a5b8c7864112b4137fd92b36c3f1395bfe57be42fedf2f520ead1a93e',
'com.github.bisq-network.bitcoinj:bitcoinj-core:f979c2187e61ee3b08dd4cbfc49a149734cff64c045d29ed112f2e12f34068a3',
'com.github.JesusMcCloud.netlayer:tor:35cf892e6ce3a8d942cfd2b589cfbde5aed31d49777aee873d6614e134df0b42',
'org.jetbrains.kotlin:kotlin-stdlib-jdk8:193ab7813e4d249f2ea4fc1b968fea8c2126bcbeeb5d6127050ce1b93dbaa7c2',