diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2022-02-08 16:03:06 +0100 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2022-02-08 16:17:00 +0100 |
commit | bad739ae3be754bb495b5a3b5830a0c972f8fa39 (patch) | |
tree | 975f0513a6a6df7854ddace58223e3b1ec65ffd3 /jdisc_core/src/test/java/com/yahoo/jdisc/core/ContainerSnapshotTestCase.java | |
parent | fdae546b833532aac0a2f49400ccf15071549c6b (diff) |
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.java | 4 |
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()); } |