Class SmithyTestCase.Result
java.lang.Object
software.amazon.smithy.model.validation.testrunner.SmithyTestCase.Result
- Enclosing class:
- SmithyTestCase
Output of validating a model against a test case.
- 
Method Details- 
toString
- 
isInvalidpublic boolean isInvalid()Checks if the result does not match expected results.- Returns:
- True if there are extra or unmatched events.
 
- 
getModelLocation- Returns:
- Returns a description of where the model was stored.
 
- 
getUnmatchedEvents- Returns:
- Returns the events that were expected but not encountered.
 
- 
getExtraEvents- Returns:
- Returns the events that were encountered but not expected.
 
- 
unwrapThrows 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.
 
 
-