Class ApiProductTestHelper
- java.lang.Object
-
- org.wso2.am.integration.test.impl.ApiProductTestHelper
-
public class ApiProductTestHelper extends Object
A collection of helper methods to aid in setting up and testing APIProducts
-
-
Constructor Summary
Constructors Constructor Description ApiProductTestHelper(RestAPIPublisherImpl restAPIPublisher, RestAPIStoreImpl restAPIStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowResponseDTOchangeLifecycleStateOfApiProduct(String apiProductId, String action, String lifecycleChecklist)APIProductDTOcreateAPIProductInPublisher(String provider, String name, String context, List<APIDTO> apisToBeUsed, List<String> policies)voidverfiyApiProductInPublisher(APIProductDTO responseData)APIDTOverifyApiProductInPortal(APIProductDTO apiProductDTO)
-
-
-
Constructor Detail
-
ApiProductTestHelper
public ApiProductTestHelper(RestAPIPublisherImpl restAPIPublisher, RestAPIStoreImpl restAPIStore)
-
-
Method Detail
-
createAPIProductInPublisher
public APIProductDTO createAPIProductInPublisher(String provider, String name, String context, List<APIDTO> apisToBeUsed, List<String> policies) throws ApiException
- Throws:
ApiException
-
changeLifecycleStateOfApiProduct
public WorkflowResponseDTO changeLifecycleStateOfApiProduct(String apiProductId, String action, String lifecycleChecklist) throws ApiException, APIManagerIntegrationTestException
-
verfiyApiProductInPublisher
public void verfiyApiProductInPublisher(APIProductDTO responseData) throws ApiException
- Throws:
ApiException
-
verifyApiProductInPortal
public APIDTO verifyApiProductInPortal(APIProductDTO apiProductDTO) throws ApiException, InterruptedException
- Throws:
ApiExceptionInterruptedException
-
-