Skip to content

Instantly share code, notes, and snippets.

@fitzoh
Created October 13, 2016 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitzoh/f15eed60784206afd78126c951252333 to your computer and use it in GitHub Desktop.
Save fitzoh/f15eed60784206afd78126c951252333 to your computer and use it in GitHub Desktop.
@RunWith(PactRunner.class)
@Provider("some-provider")
@PactFolder("/some/path/pact")
@WebIntegrationTest("server.port=8080")
@SpringApplicationConfiguration(SomeSpringBootApplication.class)
public class ProviderPactTest {
private static TestContextManager testContextManager;
@TestTarget
public final HttpTarget target = new HttpTarget(8080);
@BeforeClass
public static void beforeClass() throws Exception {
testContextManager = new TestContextManager(ProviderPactTest.class);
testContextManager.beforeTestClass();
}
@AfterClass
public static void afterClass() throws Exception {
testContextManager.afterTestClass();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment