diff --git a/src/test/java/com/hubspot/dropwizard/guice/InjectedResourcesTest.java b/src/test/java/com/hubspot/dropwizard/guice/InjectedResourcesTest.java index 953df1c..5e3535f 100644 --- a/src/test/java/com/hubspot/dropwizard/guice/InjectedResourcesTest.java +++ b/src/test/java/com/hubspot/dropwizard/guice/InjectedResourcesTest.java @@ -2,7 +2,12 @@ import com.hubspot.dropwizard.guice.objects.ExplicitDAO; import com.hubspot.dropwizard.guice.objects.ExplicitResource; +import com.squarespace.jersey2.guice.JerseyGuiceUtils; + import io.dropwizard.testing.junit.ResourceTestRule; + +import org.junit.AfterClass; +import org.junit.BeforeClass; import org.junit.ClassRule; import org.junit.Test; @@ -14,6 +19,10 @@ */ public class InjectedResourcesTest { + static { + JerseyGuiceUtils.reset(); + } + @ClassRule public static final ResourceTestRule resources = ResourceTestRule.builder() .addResource(new ExplicitResource(new ExplicitDAO()))