public class NoDiffAssertionRule
extends java.lang.Object
implements org.junit.rules.TestRule
| Constructor and Description |
|---|
NoDiffAssertionRule(Hoverfly hoverfly)
Creates a rule with the given instance of
Hoverfly that asserts that there was no diff between any of the
expected responses set by simulations and the actual responses returned from the real service. |
NoDiffAssertionRule(HoverflyConfig hoverflyConfig)
Creates a rule with the given instance of
HoverflyConfig that asserts that there was no diff between any of the
expected responses set by simulations and the actual responses returned from the real service. |
NoDiffAssertionRule(HoverflyRule hoverflyRule)
Creates a rule with the given instance of
HoverflyRule that asserts that there was no diff between any of the
expected responses set by simulations and the actual responses returned from the real service. |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
public NoDiffAssertionRule(Hoverfly hoverfly)
Hoverfly that asserts that there was no diff between any of the
expected responses set by simulations and the actual responses returned from the real service.
The rule also removes (before and after the test execution) all possible diffs that are stored in Hoverfly.
This ensures that all test runs are executed in isolated and clean environment.hoverfly - An instance of Hoverfly to be used for retrieving the diffspublic NoDiffAssertionRule(HoverflyRule hoverflyRule)
HoverflyRule that asserts that there was no diff between any of the
expected responses set by simulations and the actual responses returned from the real service.
The rule also removes (before and after the test execution) all possible diffs that are stored in Hoverfly.
This ensures that all test runs are executed in isolated and clean environment.hoverflyRule - An instance of HoverflyRule to be used for retrieving the diffspublic NoDiffAssertionRule(HoverflyConfig hoverflyConfig)
HoverflyConfig that asserts that there was no diff between any of the
expected responses set by simulations and the actual responses returned from the real service.
The rule also removes (before and after the test execution) all possible diffs that are stored in Hoverfly.
This ensures that all test runs are executed in isolated and clean environment.hoverflyConfig - An instance of HoverflyConfig to be used for retrieving the diffs