summaryrefslogtreecommitdiffstats
path: root/jdisc_core/src/test/java/com/yahoo/jdisc/core/ContainerSnapshotTestCase.java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2022-02-08 17:13:41 +0100
committerGitHub <noreply@github.com>2022-02-08 17:13:41 +0100
commit12bc5e4513d97cd6bb752b3838fc610f634769a8 (patch)
tree91ba87fd1bfa2d10f4781963265d307008feb3aa /jdisc_core/src/test/java/com/yahoo/jdisc/core/ContainerSnapshotTestCase.java
parent5607b924b450e6574f68fdbd164563e8c25b9dbd (diff)
parentbad739ae3be754bb495b5a3b5830a0c972f8fa39 (diff)
Merge pull request #21108 from vespa-engine/bjorncs/jdisc-corev7.540.35
Deprecate method leaking Guice
Diffstat (limited to 'jdisc_core/src/test/java/com/yahoo/jdisc/core/ContainerSnapshotTestCase.java')
-rw-r--r--jdisc_core/src/test/java/com/yahoo/jdisc/core/ContainerSnapshotTestCase.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/jdisc_core/src/test/java/com/yahoo/jdisc/core/ContainerSnapshotTestCase.java b/jdisc_core/src/test/java/com/yahoo/jdisc/core/ContainerSnapshotTestCase.java
index 3e6987c8c6f..dc1f3c7609e 100644
--- a/jdisc_core/src/test/java/com/yahoo/jdisc/core/ContainerSnapshotTestCase.java
+++ b/jdisc_core/src/test/java/com/yahoo/jdisc/core/ContainerSnapshotTestCase.java
@@ -2,8 +2,6 @@
package com.yahoo.jdisc.core;
import com.google.inject.AbstractModule;
-import com.google.inject.Key;
-import com.google.inject.name.Names;
import com.yahoo.jdisc.AbstractResource;
import com.yahoo.jdisc.Request;
import com.yahoo.jdisc.application.BindingMatch;
@@ -142,13 +140,11 @@ public class ContainerSnapshotTestCase {
@Override
protected void configure() {
bind(Object.class).toInstance(obj);
- bind(String.class).annotatedWith(Names.named("foo")).toInstance("foo");
}
});
ActiveContainer active = new ActiveContainer(driver.newContainerBuilder());
ContainerSnapshot snapshot = new ContainerSnapshot(active, null, null, null);
assertSame(obj, snapshot.getInstance(Object.class));
- assertEquals("foo", snapshot.getInstance(Key.get(String.class, Names.named("foo"))));
snapshot.release();
assertTrue(driver.close());
}