Search in sources :

Example 1 with ClientApplicationImportApp

use of com.axway.apim.appimport.ClientApplicationImportApp in project apim-cli by Axway-API-Management-Plus.

the class ImportAppTestAction method runTest.

@Override
public void runTest(TestContext context) {
    AppImportParams params = new AppImportParams();
    addParameters(params, context);
    params.setConfig(this.configFile.getPath());
    ClientApplicationImportApp app = new ClientApplicationImportApp();
    LOG.info("Running " + app.getClass().getSimpleName() + " with params: " + params);
    ImportResult result = app.importApp(params);
    if (this.getExpectedReturnCode(context) != result.getRc()) {
        throw new ValidationException("Expected RC was: " + this.getExpectedReturnCode(context) + " but got: " + result.getRc());
    }
}
Also used : AppImportParams(com.axway.apim.appimport.lib.AppImportParams) ImportResult(com.axway.apim.lib.ImportResult) ValidationException(com.consol.citrus.exceptions.ValidationException) ClientApplicationImportApp(com.axway.apim.appimport.ClientApplicationImportApp)

Aggregations

ClientApplicationImportApp (com.axway.apim.appimport.ClientApplicationImportApp)1 AppImportParams (com.axway.apim.appimport.lib.AppImportParams)1 ImportResult (com.axway.apim.lib.ImportResult)1 ValidationException (com.consol.citrus.exceptions.ValidationException)1