Class InterfaceSchema
java.lang.Object
org.evomaster.client.java.controller.problem.rpc.schema.InterfaceSchema
schema dto of the RCP service
-
Constructor Summary
ConstructorsConstructorDescriptionInterfaceSchema(String name, List<EndpointSchema> endpoints, String client, org.evomaster.client.java.controller.api.dto.problem.rpc.RPCType rpcType) InterfaceSchema(String name, List<EndpointSchema> endpoints, String client, org.evomaster.client.java.controller.api.dto.problem.rpc.RPCType rpcType, List<String> skippedEndpoints, Map<Integer, EndpointSchema> authEndpoints, List<EndpointSchema> endpointsForAuth) -
Method Summary
Modifier and TypeMethodDescriptionfindEndpoints(String name) find endpoints based on the name note that [endpoints] and [endpointsForAuth] contains all endpoints could be invoked in this interfaceorg.evomaster.client.java.controller.api.dto.problem.rpc.RPCInterfaceSchemaDtogetDto()getName()getOneEndpoint(org.evomaster.client.java.controller.api.dto.problem.rpc.RPCActionDto dto) getOneEndpointWithSeededDto(org.evomaster.client.java.controller.api.dto.problem.rpc.SeededRPCActionDto dto) find an endpoint in this interface with seeded schemaorg.evomaster.client.java.controller.api.dto.problem.rpc.RPCTypegetTypeOrNull(String name) voidregisterType(TypeSchema type, NamedTypedValue param, boolean isTypeToIdentify) this method is used to collect all objects in sut
-
Constructor Details
-
InterfaceSchema
public InterfaceSchema(String name, List<EndpointSchema> endpoints, String client, org.evomaster.client.java.controller.api.dto.problem.rpc.RPCType rpcType) - Parameters:
name- is the name of the interfaceendpoints- is a list of endpoints which are involved for testingclient- is the client namerpcType- is the rpc type
-
InterfaceSchema
public InterfaceSchema(String name, List<EndpointSchema> endpoints, String client, org.evomaster.client.java.controller.api.dto.problem.rpc.RPCType rpcType, List<String> skippedEndpoints, Map<Integer, EndpointSchema> authEndpoints, List<EndpointSchema> endpointsForAuth) - Parameters:
name- is the name of the interfaceendpoints- is a list of endpoints which are involved for testingclient- is the client namerpcType- is the rpc typeskippedEndpoints- is a list of endpoints which are specified to be skippedauthEndpoints- is a map of authentication info which could be handled with the endpoint key - index of authentication info in the driver value - the endpoint which contains concrete info for its invocationendpointsForAuth- is a list of endpoints in this interface that are responsible for auth setup
-
-
Method Details
-
getAuthEndpoints
-
registerType
this method is used to collect all objects in sut- Parameters:
type- is the type schema of the param for an objectparam- is the concrete param example note that multiple params could belong to the same type schemaisTypeToIdentify- is the type to identify which likely does not exist in client library
-
getObjParamCollections
-
getTypeOrNull
-
getEndpoints
-
getRpcType
public org.evomaster.client.java.controller.api.dto.problem.rpc.RPCType getRpcType() -
findEndpoints
find endpoints based on the name note that [endpoints] and [endpointsForAuth] contains all endpoints could be invoked in this interface- Parameters:
name- is the name of an endpoint- Returns:
- a list of endpoints based on the specified name
-
getOneEndpoint
public EndpointSchema getOneEndpoint(org.evomaster.client.java.controller.api.dto.problem.rpc.RPCActionDto dto) - Parameters:
dto- is a rpc action dto- Returns:
- one endpoint based on an action dto note that there should only exist one endpoint which conforms with the specified dto.
-
getOneEndpointWithSeededDto
public EndpointSchema getOneEndpointWithSeededDto(org.evomaster.client.java.controller.api.dto.problem.rpc.SeededRPCActionDto dto) find an endpoint in this interface with seeded schema- Parameters:
dto- the seeded rpc action dto- Returns:
- an endpoint schema
-
getName
-
getClientInfo
-
getTypeCollections
-
getDto
public org.evomaster.client.java.controller.api.dto.problem.rpc.RPCInterfaceSchemaDto getDto()- Returns:
- a dto of the RPC interface schema which would be sent to core as a part of sut info
-