public abstract class PrimitiveOrWrapperParam<V> extends NamedTypedValue<PrimitiveOrWrapperType,V>
accessibleSchema, NOT_NULL_MARK_OBJ_DATE| Constructor and Description |
|---|
PrimitiveOrWrapperParam(String name,
PrimitiveOrWrapperType type,
AccessibleSchema accessibleSchema) |
PrimitiveOrWrapperParam(String name,
String type,
String fullTypeName,
Class<?> clazz,
AccessibleSchema accessibleSchema) |
| Modifier and Type | Method and Description |
|---|---|
static PrimitiveOrWrapperParam |
build(String name,
Class<?> clazz,
AccessibleSchema accessibleSchema) |
ParamDto |
getDto()
get its dto format in order to further handle it with evomastr core
|
Long |
getMax() |
Long |
getMin() |
abstract String |
getPrimitiveValue(String responseVarName) |
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 |
setMin(Long min) |
void |
setValueBasedOnDto(ParamDto dto)
set value based on dto
the value is basically obtained from evomaster core
|
abstract void |
setValueBasedOnStringValue(String stringValue) |
copyStructure, getCandidateReferences, getCandidates, getName, getType, getValue, getValueAsJavaString, isHasDependentCandidates, isNullable, isValidInstance, newAssertionWithJava, newInstanceWithJava, sameParam, setCandidateReferences, setCandidates, setHasDependentCandidates, setNullable, setValue, setValueBasedOnInstance, setValueBasedOnValidInstancepublic PrimitiveOrWrapperParam(String name, String type, String fullTypeName, Class<?> clazz, AccessibleSchema accessibleSchema)
public PrimitiveOrWrapperParam(String name, PrimitiveOrWrapperType type, AccessibleSchema accessibleSchema)
public static PrimitiveOrWrapperParam build(String name, Class<?> clazz, AccessibleSchema accessibleSchema)
public ParamDto getDto()
NamedTypedValuegetDto in class NamedTypedValue<PrimitiveOrWrapperType,V>public Long getMin()
public void setMin(Long min)
public Long getMax()
public void setMax(Long max)
public Object newInstance()
newInstance in class NamedTypedValue<PrimitiveOrWrapperType,V>public List<String> newInstanceWithJava(boolean isDeclaration, boolean doesIncludeName, String variableName, int indent)
NamedTypedValuenewInstanceWithJava in class NamedTypedValue<PrimitiveOrWrapperType,V>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<PrimitiveOrWrapperType,V>indent - specifies the current indent of the coderesponseVarName - a variable name for responsespublic void setValueBasedOnDto(ParamDto dto)
NamedTypedValuesetValueBasedOnDto in class NamedTypedValue<PrimitiveOrWrapperType,V>dto - contains value info with stringpublic abstract void setValueBasedOnStringValue(String stringValue)
Copyright © 2016–2022. All rights reserved.