public class FloatParam extends PrimitiveOrWrapperParam<Float>
accessibleSchema, objectMaper| Constructor and Description |
|---|
FloatParam(String name,
PrimitiveOrWrapperType type,
AccessibleSchema accessibleSchema) |
FloatParam(String name,
String type,
String fullTypeName,
Class<?> clazz,
AccessibleSchema accessibleSchema,
JavaDtoSpec spec) |
| Modifier and Type | Method and Description |
|---|---|
FloatParam |
copyStructure() |
ParamDto |
getDto()
get its dto format in order to further handle it with evomastr core
|
String |
getValueAsJavaString(boolean isJava) |
boolean |
isValidInstance(Object instance) |
List<String> |
newAssertionWithJavaOrKotlin(int indent,
String responseVarName,
int maxAssertionForDataInCollection,
boolean isJava)
create assertions with java for response
|
String |
primitiveValueMethod(boolean isJava) |
void |
setValueBasedOnStringValue(String stringValue) |
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
|
build, castValueInTestGenerationIfNeeded, castValueWithSpecificMethod, convertValueTo, copyProperties, getCastType, getMax, getMaxInclusive, getMin, getMinInclusive, getPrecision, getPrimitiveOrWrapper, getPrimitiveValueInAssertion, getScale, newInstance, newInstanceWithJavaOrKotlin, referenceTypes, setMax, setMaxInclusive, setMin, setMinInclusive, setPrecision, setScale, setValueBasedOnDtocopyStructureWithProperties, getCandidateReferences, getCandidates, getDefaultValue, getName, getType, getValue, isHasDependentCandidates, isMutable, isNullable, newAssertionWithJavaOrKotlin, newInstanceWithJavaOrKotlin, parseValueWithJson, sameParam, setCandidateReferences, setCandidates, setDefaultValue, setHasDependentCandidates, setMutable, setNullable, setValue, setValueBasedOnInstance, setValueBasedOnInstanceOrJsonclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleConstraintsInCopy, handleConstraintsInCopyDtopublic FloatParam(String name, String type, String fullTypeName, Class<?> clazz, AccessibleSchema accessibleSchema, JavaDtoSpec spec)
public FloatParam(String name, PrimitiveOrWrapperType type, AccessibleSchema accessibleSchema)
public String getValueAsJavaString(boolean isJava)
getValueAsJavaString in class NamedTypedValue<PrimitiveOrWrapperType,Float>public ParamDto getDto()
NamedTypedValuegetDto in class PrimitiveOrWrapperParam<Float>public FloatParam copyStructure()
copyStructure in class NamedTypedValue<PrimitiveOrWrapperType,Float>public void setValueBasedOnStringValue(String stringValue)
setValueBasedOnStringValue in class PrimitiveOrWrapperParam<Float>protected void setValueBasedOnValidInstance(Object instance)
NamedTypedValuesetValueBasedOnValidInstance in class NamedTypedValue<PrimitiveOrWrapperType,Float>instance - is the instancepublic boolean isValidInstance(Object instance)
isValidInstance in class NamedTypedValue<PrimitiveOrWrapperType,Float>instance - a java object which is an instance of this param schemapublic List<String> newAssertionWithJavaOrKotlin(int indent, String responseVarName, int maxAssertionForDataInCollection, boolean isJava)
NamedTypedValuenewAssertionWithJavaOrKotlin in class PrimitiveOrWrapperParam<Float>indent - specifies the current indent of the coderesponseVarName - a variable name for responsespublic String primitiveValueMethod(boolean isJava)
primitiveValueMethod in class PrimitiveOrWrapperParam<Float>Copyright © 2016–2024. All rights reserved.