public class InteractionRunner<I extends Interaction>
Internal class to support pact test running
Developed with org.junit.runners.BlockJUnit4ClassRunner in mind
public static au.com.dius.pact.provider.junit.InteractionRunner.Companion Companion
public InteractionRunner(@NotNull
org.junit.runners.model.TestClass testClass,
@NotNull
au.com.dius.pact.model.Pact<I> pact,
@NotNull
au.com.dius.pact.model.PactSource pactSource)
Internal class to support pact test running
Developed with org.junit.runners.BlockJUnit4ClassRunner in mind
@NotNull public au.com.dius.pact.provider.TestResultAccumulator getTestResultAccumulator()
public void setTestResultAccumulator(@NotNull
au.com.dius.pact.provider.TestResultAccumulator p)
@NotNull public org.junit.runner.Description getDescription()
@NotNull
protected org.junit.runner.Description describeChild(@NotNull
au.com.dius.pact.model.Interaction interaction)
protected void validate()
protected void validatePublicVoidNoArgMethods(@NotNull
java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
boolean isStatic,
@NotNull
java.util.List<java.lang.Throwable> errors)
protected void validateConstructor(@NotNull
java.util.List<java.lang.Throwable> errors)
protected boolean hasOneConstructor()
protected void validateTestTarget(@NotNull
java.util.List<java.lang.Throwable> errors)
protected void validateRules(@NotNull
java.util.List<? extends java.lang.Throwable> errors)
public void run(@NotNull
org.junit.runner.notification.RunNotifier notifier)
@NotNull protected java.lang.Object createTest()
@NotNull
protected org.junit.runners.model.Statement interactionBlock(@NotNull
au.com.dius.pact.model.Interaction interaction,
@NotNull
au.com.dius.pact.model.PactSource source,
@NotNull
java.util.Map<java.lang.String,? extends java.lang.Object> context)
public void surrogateTestMethod()
protected void setupTargetForInteraction(@NotNull
au.com.dius.pact.provider.junit.target.Target target)
@NotNull
protected au.com.dius.pact.provider.junit.target.Target lookupTarget(@NotNull
java.lang.Object testInstance)
@NotNull
protected org.junit.runners.model.Statement withStateChanges(@NotNull
au.com.dius.pact.model.Interaction interaction,
@NotNull
java.lang.Object target,
@NotNull
org.junit.runners.model.Statement statement)
@NotNull
protected org.junit.runners.model.Statement withBefores(@NotNull
au.com.dius.pact.model.Interaction interaction,
@NotNull
java.lang.Object target,
@NotNull
org.junit.runners.model.Statement statement)
@NotNull
protected org.junit.runners.model.Statement withAfters(@NotNull
au.com.dius.pact.model.Interaction interaction,
@NotNull
java.lang.Object target,
@NotNull
org.junit.runners.model.Statement statement)
@NotNull
protected org.junit.runners.model.Statement withRules(@NotNull
au.com.dius.pact.model.Interaction interaction,
@NotNull
java.lang.Object target,
@NotNull
org.junit.runners.model.Statement statement)