Interface MessageValidation.SimpleExpectation<V>

    • Method Detail

      • test

        void test​(V value)
           throws java.lang.Exception
        Test the expectation.
        Parameters:
        value - The value to be tested.
        Throws:
        java.lang.Exception - On any unmet expectation or other errors.
      • test

        default void test​(java.lang.String path,
                          V value)
                   throws java.lang.Exception
        Test the expectation at a specific path in the structure.
        Specified by:
        test in interface MessageValidation.Expectation<V>
        Parameters:
        path - The path to the current location.
        value - The value to be tested.
        Throws:
        java.lang.Exception - On validation failure.