Class DateParam
java.lang.Object
org.evomaster.client.java.controller.problem.rpc.schema.params.NamedTypedValue<DateType,List<IntParam>>
org.evomaster.client.java.controller.problem.rpc.schema.params.DateParam
handle date param with java.util.Date
-
Field Summary
Fields inherited from class org.evomaster.client.java.controller.problem.rpc.schema.params.NamedTypedValue
accessibleSchema, mapperAllowUnkownFields, objectMaper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.evomaster.client.java.controller.api.dto.problem.rpc.ParamDtogetDto()get its dto format in order to further handle it with evomastr coregetValueAsJavaString(boolean isJava) newAssertionWithJavaOrKotlin(int indent, String responseVarName, int maxAssertionForDataInCollection, boolean isJava) create assertions with java for responsenewInstanceWithJavaOrKotlin(boolean isDeclaration, boolean doesIncludeName, String variableName, int indent, boolean isJava, boolean isVariableNullable) create instances with JavavoidsetValueBasedOnDto(org.evomaster.client.java.controller.api.dto.problem.rpc.ParamDto dto) set value based on dto the value is basically obtained from evomaster coreprotected voidsetValueBasedOnValidInstance(Object instance) set the value of the param based on instance compared with [setValueBasedOnInstance], the type of the instance here is evaluated as validMethods inherited from class org.evomaster.client.java.controller.problem.rpc.schema.params.NamedTypedValue
copyProperties, copyStructureWithProperties, getCandidateReferences, getCandidates, getDefaultValue, getName, getType, getValue, isHasDependentCandidates, isMutable, isNullable, isValidInstance, newAssertionWithJavaOrKotlin, newInstanceWithJavaOrKotlin, parseValueWithJson, sameParam, setCandidateReferences, setCandidates, setDefaultValue, setHasDependentCandidates, setMutable, setNullable, setValue, setValueBasedOnInstance, setValueBasedOnInstanceOrJson
-
Constructor Details
-
DateParam
-
-
Method Details
-
newInstance
- Specified by:
newInstancein classNamedTypedValue<DateType,List<IntParam>> - Throws:
ClassNotFoundException
-
copyStructure
- Specified by:
copyStructurein classNamedTypedValue<DateType,List<IntParam>>
-
getDto
public org.evomaster.client.java.controller.api.dto.problem.rpc.ParamDto getDto()Description copied from class:NamedTypedValueget its dto format in order to further handle it with evomastr core- Overrides:
getDtoin classNamedTypedValue<DateType,List<IntParam>> - Returns:
- its corresponding dto
-
setValueBasedOnDto
public void setValueBasedOnDto(org.evomaster.client.java.controller.api.dto.problem.rpc.ParamDto dto) Description copied from class:NamedTypedValueset value based on dto the value is basically obtained from evomaster core- Specified by:
setValueBasedOnDtoin classNamedTypedValue<DateType,List<IntParam>> - Parameters:
dto- contains value info with string
-
setValueBasedOnValidInstance
Description copied from class:NamedTypedValueset the value of the param based on instance compared with [setValueBasedOnInstance], the type of the instance here is evaluated as valid- Specified by:
setValueBasedOnValidInstancein classNamedTypedValue<DateType,List<IntParam>> - Parameters:
instance- is the instance
-
newInstanceWithJavaOrKotlin
public List<String> newInstanceWithJavaOrKotlin(boolean isDeclaration, boolean doesIncludeName, String variableName, int indent, boolean isJava, boolean isVariableNullable) Description copied from class:NamedTypedValuecreate instances with Java- Specified by:
newInstanceWithJavaOrKotlinin classNamedTypedValue<DateType,List<IntParam>> - Parameters:
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 code- Returns:
- a list of string which could create instance with java
-
newAssertionWithJavaOrKotlin
public List<String> newAssertionWithJavaOrKotlin(int indent, String responseVarName, int maxAssertionForDataInCollection, boolean isJava) Description copied from class:NamedTypedValuecreate assertions with java for response- Specified by:
newAssertionWithJavaOrKotlinin classNamedTypedValue<DateType,List<IntParam>> - Parameters:
indent- specifies the current indent of the coderesponseVarName- a variable name for responses- Returns:
- a list of string for assertions
-
getValueAsJavaString
- Specified by:
getValueAsJavaStringin classNamedTypedValue<DateType,List<IntParam>> - Returns:
- a string which could representing the value of the param with java eg, float 4.2 could be 4.2f
-
referenceTypes
- Specified by:
referenceTypesin classNamedTypedValue<DateType,List<IntParam>>
-