Class SmithyDiffTestCase.Result
java.lang.Object
software.amazon.smithy.diff.testrunner.SmithyDiffTestCase.Result
- Enclosing class:
- SmithyDiffTestCase
Output of diffing a model against a test case.
-
Method Details
-
toString
-
getName
- Returns:
- Returns the name of the test case.
-
getUnmatchedEvents
- Returns:
- Returns the events that were expected but not encountered.
-
getExtraEvents
- Returns:
- Returns the events that were encountered but not expected.
-
isInvalid
public boolean isInvalid()Checks if the result does not match expected results.- Returns:
- True if there are extra or unmatched events.
-
unwrap
Throws an exception if the result is invalid, otherwise returns the result.- Returns:
- Returns the result if it is ok.
- Throws:
SmithyDiffTestCase.Error
- if the result contains invalid events.
-