public class DateParam extends NamedTypedValue<DateType,List<IntParam>>
accessibleSchema, objectMaper| Constructor and Description |
|---|
DateParam(String name,
DateType type,
AccessibleSchema accessibleSchema) |
| Modifier and Type | Method and Description |
|---|---|
DateParam |
copyStructure() |
ParamDto |
getDto()
get its dto format in order to further handle it with evomastr core
|
String |
getValueAsJavaString(boolean isJava) |
List<String> |
newAssertionWithJavaOrKotlin(int indent,
String responseVarName,
int maxAssertionForDataInCollection,
boolean isJava)
create assertions with java for response
|
Object |
newInstance() |
List<String> |
newInstanceWithJavaOrKotlin(boolean isDeclaration,
boolean doesIncludeName,
String variableName,
int indent,
boolean isJava,
boolean isVariableNullable)
create instances with Java
|
List<String> |
referenceTypes() |
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
|
copyProperties, copyStructureWithProperties, getCandidateReferences, getCandidates, getDefaultValue, getName, getType, getValue, isHasDependentCandidates, isMutable, isNullable, isValidInstance, newAssertionWithJavaOrKotlin, newInstanceWithJavaOrKotlin, parseValueWithJson, sameParam, setCandidateReferences, setCandidates, setDefaultValue, setHasDependentCandidates, setMutable, setNullable, setValue, setValueBasedOnInstance, setValueBasedOnInstanceOrJsonpublic DateParam(String name, DateType type, AccessibleSchema accessibleSchema)
public Object newInstance() throws ClassNotFoundException
newInstance in class NamedTypedValue<DateType,List<IntParam>>ClassNotFoundExceptionpublic DateParam copyStructure()
copyStructure in class NamedTypedValue<DateType,List<IntParam>>public ParamDto getDto()
NamedTypedValuegetDto in class NamedTypedValue<DateType,List<IntParam>>public void setValueBasedOnDto(ParamDto dto)
NamedTypedValuesetValueBasedOnDto in class NamedTypedValue<DateType,List<IntParam>>dto - contains value info with stringprotected void setValueBasedOnValidInstance(Object instance)
NamedTypedValuesetValueBasedOnValidInstance in class NamedTypedValue<DateType,List<IntParam>>instance - is the instancepublic List<String> newInstanceWithJavaOrKotlin(boolean isDeclaration, boolean doesIncludeName, String variableName, int indent, boolean isJava, boolean isVariableNullable)
NamedTypedValuenewInstanceWithJavaOrKotlin in class NamedTypedValue<DateType,List<IntParam>>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> newAssertionWithJavaOrKotlin(int indent, String responseVarName, int maxAssertionForDataInCollection, boolean isJava)
NamedTypedValuenewAssertionWithJavaOrKotlin in class NamedTypedValue<DateType,List<IntParam>>indent - specifies the current indent of the coderesponseVarName - a variable name for responsespublic String getValueAsJavaString(boolean isJava)
getValueAsJavaString in class NamedTypedValue<DateType,List<IntParam>>public List<String> referenceTypes()
referenceTypes in class NamedTypedValue<DateType,List<IntParam>>Copyright © 2016–2025. All rights reserved.