public class BaseProviderRule
Modifier and Type | Field and Description |
---|---|
au.com.dius.pact.model.MockProviderConfig |
config |
java.lang.String |
provider |
java.lang.Object |
target |
Constructor and Description |
---|
BaseProviderRule() |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply() |
au.com.dius.pact.model.MockProviderConfig |
getConfig() |
au.com.dius.pact.consumer.MockServer |
getMockServer() |
java.util.Map<java.lang.String,au.com.dius.pact.model.RequestResponsePact> |
getPacts()
scan all methods for @Pact annotation and execute them, if not already initialized
|
java.lang.Integer |
getPort()
Returns the port number for the mock server. Returns null if the mock server is not running.
|
java.lang.String |
getUrl()
Returns the URL for the mock server. Returns null if the mock server is not running.
|
void |
validateResult() |
public java.lang.String provider
public java.lang.Object target
public au.com.dius.pact.model.MockProviderConfig config
public au.com.dius.pact.model.MockProviderConfig getConfig()
public au.com.dius.pact.consumer.MockServer getMockServer()
public org.junit.runners.model.Statement apply()
public void validateResult()
public java.util.Map<java.lang.String,au.com.dius.pact.model.RequestResponsePact> getPacts()
scan all methods for @Pact annotation and execute them, if not already initialized
public java.lang.String getUrl()
Returns the URL for the mock server. Returns null if the mock server is not running.
public java.lang.Integer getPort()
Returns the port number for the mock server. Returns null if the mock server is not running.