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());
}
}
Aggregations