Skip to content

Commit

Permalink
Make sure this is set up before the test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaber committed Feb 1, 2017
1 parent 59d54ae commit f0ed9c1
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -14,6 +19,10 @@
*/
public class InjectedResourcesTest {

static {
JerseyGuiceUtils.reset();
}

@ClassRule
public static final ResourceTestRule resources = ResourceTestRule.builder()
.addResource(new ExplicitResource(new ExplicitDAO()))
Expand Down

0 comments on commit f0ed9c1

Please sign in to comment.