public class NoDiffAssertion
extends java.lang.Object
| Constructor and Description |
|---|
NoDiffAssertion(io.specto.hoverfly.junit.core.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. |
NoDiffAssertion(io.specto.hoverfly.junit.core.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. |
NoDiffAssertion(HoverflyTestNG hoverflyTestNG)
Creates a rule with the given instance of
HoverflyTestNG 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 |
|---|---|
void |
cleanDiffs() |
void |
performAssertion() |
public NoDiffAssertion(io.specto.hoverfly.junit.core.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 NoDiffAssertion(HoverflyTestNG hoverflyTestNG)
HoverflyTestNG 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.hoverflyTestNG - An instance of HoverflyTestNG to be used for retrieving the diffspublic NoDiffAssertion(io.specto.hoverfly.junit.core.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