Class EndpointSchema
java.lang.Object
org.evomaster.client.java.controller.problem.rpc.schema.EndpointSchema
- Direct Known Subclasses:
LocalAuthSetupSchema
endpoint dto for RPC service
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointSchema(String name, String interfaceName, String clientTypeName, List<NamedTypedValue> requestParams, NamedTypedValue response, List<NamedTypedValue> exceptions, boolean authRequired, List<Integer> requiredAuthCandidates, Set<String> relatedCustomizedCandidates) -
Method Summary
Modifier and TypeMethodDescriptiongetDto()getName()newInvocationWithJavaOrKotlin(String responseVarName, String controllerVarName, String clientVariable, SutInfoDto.OutputFormat outputFormat) process to generate java code to invoke this requestbooleansameEndpoint(RPCActionDto dto) booleanfind an endpoint schema based on seeded testsvoidsetValue(RPCActionDto dto) set value of endpoint based on dto
-
Constructor Details
-
EndpointSchema
public EndpointSchema(String name, String interfaceName, String clientTypeName, List<NamedTypedValue> requestParams, NamedTypedValue response, List<NamedTypedValue> exceptions, boolean authRequired, List<Integer> requiredAuthCandidates, Set<String> relatedCustomizedCandidates) - Parameters:
name- is the name of the endpoint, ie, method nameinterfaceName- is the full name of the interfaceclientTypeName- is the client type with its full namerequestParams- is a list of parameters in requestresponse- is the response, ie, returnexceptions- is related to exception for this endpointauthRequired- specifies whether the endpoint clearly declares that it requires auth, eg with annotation note that if authRequired is false, the endpoint could also apply global auth setuprequiredAuthCandidates- represents required candidates for its auth setuprelatedCustomizedCandidates- represents related customizations based on their references
-
-
Method Details
-
getRelatedCustomizedCandidates
-
getName
-
getRequestParams
-
getResponse
-
getExceptions
-
getDto
- Returns:
- a dto with a respect to this endpoint such dto would be used between core and driver
-
sameEndpoint
- Parameters:
dto- is a dto of rpc call which contains value info- Returns:
- if this endpoint matches the specified dto
-
sameEndpoint
find an endpoint schema based on seeded tests- Parameters:
dto- a seeded test dto- Returns:
- an endpoint schema
-
copyStructure
- Returns:
- a copy of this endpoint which contains its structure but not values
-
setValue
set value of endpoint based on dto- Parameters:
dto- contains value info the endpoint note that the dto is typically generated by core side, ie, search
-
newInvocationWithJavaOrKotlin
public List<String> newInvocationWithJavaOrKotlin(String responseVarName, String controllerVarName, String clientVariable, SutInfoDto.OutputFormat outputFormat) process to generate java code to invoke this request- Parameters:
responseVarName- specifies a variable name representing a response of this endpointclientVariable-outputFormat-- Returns:
- code to send the request and set the response if exists
-