public class ModelRootAssertion extends ASTAssertionBase<ModelRootAssertion>
_index, _name, ast, parent| Constructor and Description |
|---|
ModelRootAssertion() |
ModelRootAssertion(ASTModel model) |
error, getActualPrefix, getExpectedPrefix, getIdentifier, getPositionString, info, parent, parentAssertion, shouldBeFalse, shouldBeInstanceOf, shouldBeNull, shouldBeTrue, shouldContains, shouldEquals, shouldEquals, shouldEquals, shouldEquals, shouldEquals, shouldHaveMinSizeOf, shouldHaveSizeOf, shouldNotBeEmpty, shouldNotBeEmpty, shouldNotBeEmpty, shouldNotBeEmpty, shouldNotBeNull, shouldNotBeOutOfRange, shouldStartsWith, writeActual, writeExpected, writeExpectedAndActualpublic ModelRootAssertion()
public ModelRootAssertion(ASTModel model)
public CommentListAssertion comments()
public VariableListAssertion variables()
public RuleListAssertion rules()
public UnknownListAssertion unknowns()
public RuleListAssertion nullCheckRules()
public ModelRootAssertion sizeOfElements(int size)
public ModelRootAssertion sizeOfRules(int size)
public ModelRootAssertion sizeOfNullCheckRules(int size)
public ModelRootAssertion sizeOfComments(int size)
public ModelRootAssertion sizeOfVariables(int size)
public VariableAssertion firstVariable(String name) throws Exception
Exceptionpublic VariableAssertion firstVariable() throws Exception
Exceptionpublic static CommentListAssertion assertComments(ASTModel model)
public static VariableListAssertion assertVariable(ASTModel model)
public static RuleListAssertion assertRules(ASTModel model)
public static ModelRootAssertion assertAST(ASTModel model)
public static UnknownListAssertion assertUnknown(ASTModel model)
public static ModelRootAssertion assertResult(OpenValidationResult result) throws Exception
Exceptionpublic ModelRootAssertion hasOriginalSource(String source) throws Exception
Exceptionpublic ModelRootAssertion hasOriginalSource() throws Exception
Exceptionpublic ModelRootAssertion hasPreprocessedSource(String source) throws Exception
Exceptionpublic ModelRootAssertion hasPreprocessedSource() throws Exception
ExceptionCopyright © 2020. All rights reserved.