public class FunctionAssertion extends ASTItemAssertionBase<ASTOperandFunction,ASTAssertionBase,FunctionAssertion>
model_index, _name, ast, parent| Constructor and Description |
|---|
FunctionAssertion(ASTOperandFunction item,
ASTModel ast,
ASTAssertionBase parent) |
| Modifier and Type | Method and Description |
|---|---|
FunctionAssertion |
firstArrayOfFunction() |
FunctionAssertion |
firstFunction() |
FunctionAssertion |
firstFunction(String name) |
PropertyAssertion |
firstProperty() |
PropertyAssertion |
firstProperty(String path) |
VariableReferenceAssertion |
firstVariable() |
FunctionAssertion |
firstWhereFunction() |
FunctionAssertion |
hasArrayContentType(DataPropertyType expectedType) |
FunctionAssertion |
hasName(String name) |
FunctionAssertion |
hasType(DataPropertyType expectedType) |
OperandListAssertion |
parameters() |
FunctionAssertion |
parentFunction() |
LambdaAssertion |
secondLambda() |
PropertyAssertion |
secondProperty() |
PropertyAssertion |
secondPropertyLambda(String path) |
VariableReferenceAssertion |
secondVariable() |
FunctionAssertion |
sizeOfParameters(int size) |
hasOriginalSource, hasOriginalSource, hasPreprocessedSource, hasPreprocessedSource, parentArithmetic, parentArithmeticOperand, parentCondition, parentModel, parentOperand, parentOperation, shouldNotBeEmptyerror, getActualPrefix, getExpectedPrefix, getIdentifier, getPositionString, info, parent, parentAssertion, shouldBeFalse, shouldBeInstanceOf, shouldBeNull, shouldBeTrue, shouldContains, shouldEquals, shouldEquals, shouldEquals, shouldEquals, shouldEquals, shouldHaveMinSizeOf, shouldHaveSizeOf, shouldNotBeEmpty, shouldNotBeEmpty, shouldNotBeEmpty, shouldNotBeNull, shouldNotBeOutOfRange, shouldStartsWith, writeActual, writeExpected, writeExpectedAndActualpublic FunctionAssertion(ASTOperandFunction item, ASTModel ast, ASTAssertionBase parent)
public FunctionAssertion hasName(String name)
public FunctionAssertion hasType(DataPropertyType expectedType)
public FunctionAssertion hasArrayContentType(DataPropertyType expectedType)
public FunctionAssertion sizeOfParameters(int size)
public OperandListAssertion parameters()
public PropertyAssertion firstProperty(String path) throws Exception
Exceptionpublic PropertyAssertion firstProperty() throws Exception
Exceptionpublic FunctionAssertion firstFunction() throws Exception
Exceptionpublic FunctionAssertion firstArrayOfFunction() throws Exception
Exceptionpublic FunctionAssertion firstWhereFunction() throws Exception
Exceptionpublic FunctionAssertion firstFunction(String name) throws Exception
Exceptionpublic VariableReferenceAssertion firstVariable() throws Exception
Exceptionpublic PropertyAssertion secondPropertyLambda(String path) throws Exception
Exceptionpublic PropertyAssertion secondProperty() throws Exception
Exceptionpublic LambdaAssertion secondLambda() throws Exception
Exceptionpublic VariableReferenceAssertion secondVariable() throws Exception
Exceptionpublic FunctionAssertion parentFunction()
Copyright © 2020. All rights reserved.