Class SmithyTestCase.Result
- java.lang.Object
 - 
- software.amazon.smithy.model.validation.testrunner.SmithyTestCase.Result
 
 
- 
- Enclosing class:
 - SmithyTestCase
 
public static final class SmithyTestCase.Result extends java.lang.ObjectOutput of validating a model against a test case. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<ValidationEvent>getExtraEvents()java.lang.StringgetModelLocation()java.util.Collection<ValidationEvent>getUnmatchedEvents()booleanisInvalid()Checks if the result does not match expected results.java.lang.StringtoString()SmithyTestCase.Resultunwrap()Throws an exception if the result is invalid, otherwise returns the result. 
 - 
 
- 
- 
Method Detail
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.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.
 
 - 
 
 -