public class StringParam extends NamedTypedValue<StringType,String>
accessibleSchema, NOT_NULL_MARK_OBJ_DATE| Constructor and Description |
|---|
StringParam(String name,
AccessibleSchema accessibleSchema) |
| Modifier and Type | Method and Description |
|---|---|
StringParam |
copyStructure() |
ParamDto |
getDto()
get its dto format in order to further handle it with evomastr core
|
Long |
getMax() |
Integer |
getMaxSize() |
Long |
getMin() |
Integer |
getMinSize() |
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 |
setMax(Long max) |
void |
setMaxSize(Integer maxSize) |
void |
setMin(Long min) |
void |
setMinSize(Integer minSize) |
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
|
getCandidateReferences, getCandidates, getName, getType, getValue, isHasDependentCandidates, isNullable, isValidInstance, newAssertionWithJava, newInstanceWithJava, sameParam, setCandidateReferences, setCandidates, setHasDependentCandidates, setNullable, setValue, setValueBasedOnInstancepublic StringParam(String name, AccessibleSchema accessibleSchema)
public Integer getMinSize()
public void setMinSize(Integer minSize)
public Integer getMaxSize()
public void setMaxSize(Integer maxSize)
public Long getMin()
public void setMin(Long min)
public Long getMax()
public void setMax(Long max)
public Object newInstance()
newInstance in class NamedTypedValue<StringType,String>public StringParam copyStructure()
copyStructure in class NamedTypedValue<StringType,String>public void setValueBasedOnDto(ParamDto dto)
NamedTypedValuesetValueBasedOnDto in class NamedTypedValue<StringType,String>dto - contains value info with stringpublic ParamDto getDto()
NamedTypedValuegetDto in class NamedTypedValue<StringType,String>protected void setValueBasedOnValidInstance(Object instance)
NamedTypedValuesetValueBasedOnValidInstance in class NamedTypedValue<StringType,String>instance - is the instancepublic List<String> newInstanceWithJava(boolean isDeclaration, boolean doesIncludeName, String variableName, int indent)
NamedTypedValuenewInstanceWithJava in class NamedTypedValue<StringType,String>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<StringType,String>indent - specifies the current indent of the coderesponseVarName - a variable name for responsespublic String getValueAsJavaString()
getValueAsJavaString in class NamedTypedValue<StringType,String>Copyright © 2016–2022. All rights reserved.