public class Protobuf3ByteStringParam extends NamedTypedValue<Protobuf3ByteStringType,String>
| Modifier and Type | Field and Description |
|---|---|
static String |
PROTOBUF3_BYTE_STRING_METHOD_COPY_FROM_METHOD |
static String |
PROTOBUF3_BYTE_STRING_METHOD_TO_STRING_UTF8 |
accessibleSchema, mapperAllowUnkownFields, objectMaper| Constructor and Description |
|---|
Protobuf3ByteStringParam(String name,
Protobuf3ByteStringType type,
AccessibleSchema accessibleSchema) |
| Modifier and Type | Method and Description |
|---|---|
Protobuf3ByteStringParam |
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 static final String PROTOBUF3_BYTE_STRING_METHOD_COPY_FROM_METHOD
public static final String PROTOBUF3_BYTE_STRING_METHOD_TO_STRING_UTF8
public Protobuf3ByteStringParam(String name, Protobuf3ByteStringType type, AccessibleSchema accessibleSchema)
public Object newInstance() throws ClassNotFoundException
newInstance in class NamedTypedValue<Protobuf3ByteStringType,String>ClassNotFoundExceptionpublic ParamDto getDto()
NamedTypedValuegetDto in class NamedTypedValue<Protobuf3ByteStringType,String>public Protobuf3ByteStringParam copyStructure()
copyStructure in class NamedTypedValue<Protobuf3ByteStringType,String>public void setValueBasedOnDto(ParamDto dto)
NamedTypedValuesetValueBasedOnDto in class NamedTypedValue<Protobuf3ByteStringType,String>dto - contains value info with stringprotected void setValueBasedOnValidInstance(Object instance)
NamedTypedValuesetValueBasedOnValidInstance in class NamedTypedValue<Protobuf3ByteStringType,String>instance - is the instancepublic List<String> newInstanceWithJavaOrKotlin(boolean isDeclaration, boolean doesIncludeName, String variableName, int indent, boolean isJava, boolean isVariableNullable)
NamedTypedValuenewInstanceWithJavaOrKotlin in class NamedTypedValue<Protobuf3ByteStringType,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> newAssertionWithJavaOrKotlin(int indent, String responseVarName, int maxAssertionForDataInCollection, boolean isJava)
NamedTypedValuenewAssertionWithJavaOrKotlin in class NamedTypedValue<Protobuf3ByteStringType,String>indent - specifies the current indent of the coderesponseVarName - a variable name for responsespublic String getValueAsJavaString(boolean isJava)
getValueAsJavaString in class NamedTypedValue<Protobuf3ByteStringType,String>public List<String> referenceTypes()
referenceTypes in class NamedTypedValue<Protobuf3ByteStringType,String>Copyright © 2016–2025. All rights reserved.