Class PactRunner
-
- All Implemented Interfaces:
-
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Orderable,org.junit.runner.manipulation.Sortable
public class PactRunner extends ParentRunner<InteractionRunner>
JUnit Runner runs pacts against provider To set up name of tested provider use Provider annotation To point on pact's source use PactBroker, PactFolder or PactSource annotations
To point provider for testing use combination of Target interface and TestTarget annotation There is out-of-the-box implementation of Target: HttpTarget that will play interaction from pacts as http request and check http responses
Runner supports:
org.junit.BeforeClass, org.junit.AfterClass and org.junit.ClassRule annotations, that will be run once - before/after whole contract test suite
org.junit.Before, org.junit.After and org.junit.Rule annotations, that will be run before/after each test of interaction WARNING: please note, that only org.junit.rules.TestRule is possible to use with this runner, i.e. org.junit.rules.MethodRule IS NOT supported
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringWARNING_ON_IGNORED_IOERRORprivate final TestClasstestClass
-
Constructor Summary
Constructors Constructor Description PactRunner(Class<?> clazz)
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class org.junit.runners.ParentRunner
filter, getDescription, getTestClass, order, run, setScheduler, sort -
Methods inherited from class org.junit.runner.Runner
testCount -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
PactRunner
PactRunner(Class<?> clazz)
-
-
-
-