public interface PactLoader
| Modifier and Type | Method and Description |
|---|---|
default java.lang.String |
description()
Returns a description of this pact loader
|
default void |
enablePendingPacts(boolean flag)
Enables pending pact feature
|
au.com.dius.pact.core.model.PactSource |
getPactSource()
Returns the source object that the pacts where loaded from
|
default void |
initLoader(java.lang.Class<?> testClass,
java.lang.Object testInstance)
Supports additional initialisation using the test class
|
java.util.List<au.com.dius.pact.core.model.Pact> |
load(java.lang.String providerName)
Load pacts from appropriate source
|
default void |
setValueResolver(au.com.dius.pact.core.support.expressions.ValueResolver valueResolver)
Sets the value resolver to use to resolve property expressions.
|
java.util.List<au.com.dius.pact.core.model.Pact> load(java.lang.String providerName)
throws java.io.IOException
providerName - name of provider for which pacts will be loadedjava.io.IOExceptionau.com.dius.pact.core.model.PactSource getPactSource()
default void setValueResolver(au.com.dius.pact.core.support.expressions.ValueResolver valueResolver)
valueResolver - Value Resolverdefault java.lang.String description()
default void enablePendingPacts(boolean flag)
default void initLoader(java.lang.Class<?> testClass,
java.lang.Object testInstance)