Class SmithyTestCase.Result

  • Enclosing class:
    SmithyTestCase

    public static final class SmithyTestCase.Result
    extends java.lang.Object
    Output of validating a model against a test case.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isInvalid

        public boolean isInvalid()
        Checks if the result does not match expected results.
        Returns:
        True if there are extra or unmatched events.
      • getModelLocation

        public java.lang.String getModelLocation()
        Returns:
        Returns a description of where the model was stored.
      • getUnmatchedEvents

        public java.util.Collection<ValidationEvent> getUnmatchedEvents()
        Returns:
        Returns the events that were expected but not encountered.
      • getExtraEvents

        public java.util.Collection<ValidationEvent> getExtraEvents()
        Returns:
        Returns the events that were encountered but not expected.
      • unwrap

        public SmithyTestCase.Result unwrap()
        Throws an exception if the result is invalid, otherwise returns the result.
        Returns:
        Returns the result if it is ok.
        Throws:
        SmithyTestCase.Error - if the result contains invalid events.