public class PactRule
A junit rule that wraps every test annotated with . Before each test, a mock server will be setup at given port/host that will provide mocked responses. after each test, it will be teared down. If no host is given, it will default to localhost. If no port is given, it will default to a random port.annotationclass PactVerification
annotationclass PactVerificationpublic PactRule(java.lang.String host,
int port,
java.lang.Object target)
public PactRule(java.lang.String host,
java.lang.Object target)
public PactRule(java.lang.Object target)
public au.com.dius.pact.model.MockProviderConfig getConfig()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
protected java.util.Map<java.lang.String,au.com.dius.pact.model.PactFragment> getPacts()
scan all methods for @Pact annotation and execute them, if not already initialized