Class ExpectedCheckVerifier
- java.lang.Object
-
- org.junit.rules.Verifier
-
- org.openstreetmap.atlas.checks.validation.verifier.ExpectedCheckVerifier
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class ExpectedCheckVerifier extends org.junit.rules.VerifierJUnit verifier for comparing an expected list of CheckFlags with those actually created by the checks under test
-
-
Constructor Summary
Constructors Constructor Description ExpectedCheckVerifier()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactual(org.openstreetmap.atlas.geography.atlas.Atlas atlas, BaseCheck check)Adds a testAtlasand aCheckto verifyExpectedCheckVerifierexpect(CheckFlag... flags)protected voidverify()
-
-
-
Method Detail
-
actual
public void actual(org.openstreetmap.atlas.geography.atlas.Atlas atlas, BaseCheck check)Adds a testAtlasand aCheckto verify- Parameters:
atlas- a testAtlascheck- theCheckunder test
-
expect
public ExpectedCheckVerifier expect(CheckFlag... flags)
- Parameters:
flags- expectedCheckFlags- Returns:
- the
ExpectedCheckVerifier
-
verify
protected void verify() throws java.lang.Throwable- Overrides:
verifyin classorg.junit.rules.Verifier- Throws:
java.lang.Throwable
-
-