public final class InterfaceSchema extends Object
| Constructor and Description |
|---|
InterfaceSchema(String name,
List<EndpointSchema> endpoints,
String client,
RPCType rpcType) |
InterfaceSchema(String name,
List<EndpointSchema> endpoints,
String client,
RPCType rpcType,
List<String> skippedEndpoints,
Map<Integer,EndpointSchema> authEndpoints,
List<EndpointSchema> endpointsForAuth) |
| Modifier and Type | Method and Description |
|---|---|
List<EndpointSchema> |
findEndpoints(String name)
find endpoints based on the name
note that [endpoints] and [endpointsForAuth] contains all endpoints could be invoked in this interface
|
Map<Integer,EndpointSchema> |
getAuthEndpoints() |
String |
getClientInfo() |
RPCInterfaceSchemaDto |
getDto() |
List<EndpointSchema> |
getEndpoints() |
String |
getName() |
Map<String,NamedTypedValue> |
getObjParamCollections() |
EndpointSchema |
getOneEndpoint(RPCActionDto dto) |
RPCType |
getRpcType() |
Map<String,TypeSchema> |
getTypeCollections() |
TypeSchema |
getTypeOrNull(String name) |
void |
registerType(TypeSchema type,
NamedTypedValue param)
this method is used to collect all objects in sut
|
public InterfaceSchema(String name, List<EndpointSchema> endpoints, String client, RPCType rpcType)
name - is the name of the interfaceendpoints - is a list of endpoints which are involved for testingclient - is the client namerpcType - is the rpc typepublic InterfaceSchema(String name, List<EndpointSchema> endpoints, String client, RPCType rpcType, List<String> skippedEndpoints, Map<Integer,EndpointSchema> authEndpoints, List<EndpointSchema> endpointsForAuth)
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 setuppublic Map<Integer,EndpointSchema> getAuthEndpoints()
public void registerType(TypeSchema type, NamedTypedValue param)
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 schemapublic Map<String,NamedTypedValue> getObjParamCollections()
public TypeSchema getTypeOrNull(String name)
public List<EndpointSchema> getEndpoints()
public RPCType getRpcType()
public List<EndpointSchema> findEndpoints(String name)
name - is the name of an endpointpublic EndpointSchema getOneEndpoint(RPCActionDto dto)
dto - is a rpc action dtopublic String getName()
public String getClientInfo()
public Map<String,TypeSchema> getTypeCollections()
public RPCInterfaceSchemaDto getDto()
Copyright © 2016–2022. All rights reserved.