use of com.axway.apim.appexport.ApplicationExportApp in project apim-cli by Axway-API-Management-Plus.
the class ExportAppTestAction method runTest.
@Override
public ExportResult runTest(TestContext context) {
AppExportParams params = new AppExportParams();
addParameters(params, context);
params.setName(getVariable(context, PARAM_NAME));
ApplicationExportApp app = new ApplicationExportApp();
LOG.info("Running " + app.getClass().getSimpleName() + " with params: " + params);
ExportResult result = app.export(params);
if (this.getExpectedReturnCode(context) != result.getRc()) {
throw new ValidationException("Expected RC was: " + this.getExpectedReturnCode(context) + " but got: " + result.getRc());
}
return result;
}
Aggregations