Class ExpectedCheckVerifier

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class ExpectedCheckVerifier
    extends org.junit.rules.Verifier
    JUnit verifier for comparing an expected list of CheckFlags with those actually created by the checks under test This is in production code due to some downstream projects needing to use it.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actual​(org.openstreetmap.atlas.geography.atlas.Atlas atlas, BaseCheck<?> check)
      Adds a test Atlas and a Check to verify
      ExpectedCheckVerifier expect​(CheckFlag... flags)
      Verifies that the expected CheckFlags are returned when the Check is run over the test Atlas
      protected void verify()  
      • Methods inherited from class org.junit.rules.Verifier

        apply
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExpectedCheckVerifier

        public ExpectedCheckVerifier()
        Default constructor
    • Method Detail

      • actual

        public void actual​(org.openstreetmap.atlas.geography.atlas.Atlas atlas,
                           BaseCheck<?> check)
        Adds a test Atlas and a Check to verify
        Parameters:
        atlas - a test Atlas
        check - the Check under test
      • verify

        protected void verify()
                       throws java.lang.Throwable
        Overrides:
        verify in class org.junit.rules.Verifier
        Throws:
        java.lang.Throwable