Class ApiProductTestHelper
java.lang.Object
org.wso2.am.integration.test.impl.ApiProductTestHelper
A collection of helper methods to aid in setting up and testing APIProducts
-
Constructor Summary
ConstructorsConstructorDescriptionApiProductTestHelper(RestAPIPublisherImpl restAPIPublisher, RestAPIStoreImpl restAPIStore) -
Method Summary
Modifier and TypeMethodDescriptionchangeLifecycleStateOfApiProduct(String apiProductId, String action, String lifecycleChecklist) createAPIProductInPublisher(String provider, String name, String context, String version, List<APIDTO> apisToBeUsed, List<String> policies) voidverfiyApiProductInPublisher(APIProductDTO responseData) verifyApiProductInPortal(APIProductDTO apiProductDTO)
-
Constructor Details
-
ApiProductTestHelper
-
-
Method Details
-
createAPIProductInPublisher
public APIProductDTO createAPIProductInPublisher(String provider, String name, String context, String version, List<APIDTO> apisToBeUsed, List<String> policies) throws ApiException - Throws:
ApiException
-
changeLifecycleStateOfApiProduct
public WorkflowResponseDTO changeLifecycleStateOfApiProduct(String apiProductId, String action, String lifecycleChecklist) throws ApiException, APIManagerIntegrationTestException -
verfiyApiProductInPublisher
- Throws:
ApiException
-
verifyApiProductInPortal
public APIDTO verifyApiProductInPortal(APIProductDTO apiProductDTO) throws ApiException, InterruptedException - Throws:
ApiExceptionInterruptedException
-