public class ArrayParam extends CollectionParam<List<NamedTypedValue>>
accessibleSchema, NOT_NULL_MARK_OBJ_DATE| Constructor and Description |
|---|
ArrayParam(String name,
CollectionType type,
AccessibleSchema accessibleSchema) |
| Modifier and Type | Method and Description |
|---|---|
ArrayParam |
copyStructure() |
ParamDto |
getDto()
get its dto format in order to further handle it with evomastr core
|
String |
getValueAsJavaString() |
List<String> |
newAssertionWithJava(int indent,
String responseVarName,
int maxAssertionForDataInCollection)
create assertions with java for response
|
Object |
newInstance() |
List<String> |
newInstanceWithJava(boolean isDeclaration,
boolean doesIncludeName,
String variableName,
int indent)
create instances with Java
|
void |
setValueBasedOnDto(ParamDto dto)
set value based on dto
the value is basically obtained from evomaster core
|
protected void |
setValueBasedOnValidInstance(Object instance)
set the value of the param based on instance
compared with [setValueBasedOnInstance], the type of the instance here is evaluated as valid
|
getMaxSize, getMinSize, setMaxSize, setMinSizegetCandidateReferences, getCandidates, getName, getType, getValue, isHasDependentCandidates, isNullable, isValidInstance, newAssertionWithJava, newInstanceWithJava, sameParam, setCandidateReferences, setCandidates, setHasDependentCandidates, setNullable, setValue, setValueBasedOnInstancepublic ArrayParam(String name, CollectionType type, AccessibleSchema accessibleSchema)
public Object newInstance() throws ClassNotFoundException
newInstance in class NamedTypedValue<CollectionType,List<NamedTypedValue>>ClassNotFoundExceptionpublic ParamDto getDto()
NamedTypedValuegetDto in class CollectionParam<List<NamedTypedValue>>public ArrayParam copyStructure()
copyStructure in class NamedTypedValue<CollectionType,List<NamedTypedValue>>public void setValueBasedOnDto(ParamDto dto)
NamedTypedValuesetValueBasedOnDto in class NamedTypedValue<CollectionType,List<NamedTypedValue>>dto - contains value info with stringprotected void setValueBasedOnValidInstance(Object instance)
NamedTypedValuesetValueBasedOnValidInstance in class NamedTypedValue<CollectionType,List<NamedTypedValue>>instance - is the instancepublic List<String> newInstanceWithJava(boolean isDeclaration, boolean doesIncludeName, String variableName, int indent)
NamedTypedValuenewInstanceWithJava in class NamedTypedValue<CollectionType,List<NamedTypedValue>>isDeclaration - specifies whether it is used to declare the instance (ie, with type name).doesIncludeName - specifies whether it is required to have the variable name
eg, if true, var = new instance(); if yes, new instance();variableName - specifies the name of variableindent - specifies the indent of this block of the codepublic List<String> newAssertionWithJava(int indent, String responseVarName, int maxAssertionForDataInCollection)
NamedTypedValuenewAssertionWithJava in class NamedTypedValue<CollectionType,List<NamedTypedValue>>indent - specifies the current indent of the coderesponseVarName - a variable name for responsespublic String getValueAsJavaString()
getValueAsJavaString in class NamedTypedValue<CollectionType,List<NamedTypedValue>>Copyright © 2016–2022. All rights reserved.