public class ApiTestHelper extends Object
| Constructor and Description |
|---|
ApiTestHelper(RestAPIPublisherImpl restAPIPublisher,
RestAPIStoreImpl restAPIStore,
String resourceLocation,
String tenantDomain,
String nhttpURL) |
public ApiTestHelper(RestAPIPublisherImpl restAPIPublisher, RestAPIStoreImpl restAPIStore, String resourceLocation, String tenantDomain, String nhttpURL)
public APIDTO createApiOne(String backendUrl) throws ApiException
ApiExceptionpublic APIDTO createApiTwo(String backendUrl) throws ApiException
ApiExceptionpublic APIDTO createRestrictedAccessControlApi(String backendUrl, String role) throws ApiException
ApiExceptionpublic APIDTO createScopeProtectedApi(String backendUrl, String role, String scope) throws ApiException, IOException
ApiExceptionIOExceptionpublic APIDTO createInMediationSequenceApi(String backendUrl) throws IOException, ApiException
IOExceptionApiExceptionpublic APIDTO createOutMediationSequenceApi(String backendUrl) throws IOException, ApiException
IOExceptionApiExceptionpublic ApplicationDTO verifySubscription(APIDTO apiDTO, String applicationName, String subscriptionPolicy) throws ApiException
ApiExceptionpublic ApplicationKeyDTO verifyKeyGeneration(ApplicationDTO applicationDTO, ApplicationKeyGenerateRequestDTO.KeyTypeEnum keyType, ArrayList<String> scopes, List<String> grantTypes) throws ApiException
ApiExceptionpublic String generateTokenPasswordGrant(String consumerKey, String consumerSecret, String userName, String password, List<String> scopes) throws APIManagerIntegrationTestException, MalformedURLException
public void verifyInvocation(APIDTO apiDTO, String productionAccessToken, String sandboxAccessToken, InvocationStatusCodes expectedStatus) throws IOException
IOExceptionpublic void verifyInvocation(APIDTO apiDTO, String productionAccessToken, String sandboxAccessToken, InvocationStatusCodes expectedStatus, String requestBody, String expectedResponse, Map<String,String> headers) throws IOException
IOExceptionCopyright © 2020 WSO2 Inc. All rights reserved.