@Test void testPollingErrorMessage() { context.setVariable(Variables.APP_TO_PROCESS, createCloudApplication("anatz")); String pollingErrorMessage = step.getPollingErrorMessage(context); Assertions.assertEquals("Error staging application \"anatz\"", pollingErrorMessage); }
@Override public String getPollingErrorMessage(ProcessContext context) { CloudApplication application = context.getVariable(Variables.APP_TO_PROCESS); return MessageFormat.format(Messages.ERROR_STAGING_APP_0, application.getName()); }
PollStageAppStatusExecution implements AsyncExecution { @Override public String getPollingErrorMessage(ProcessContext context) { CloudApplication application = context.getVariable(Variables.APP_TO_PROCESS); return MessageFormat.format(Messages.ERROR_STAGING_APP_0, application.getName()); } }
PollStageAppStatusExecution implements AsyncExecution { @Override public String getPollingErrorMessage(ProcessContext context) { CloudApplication application = context.getVariable(Variables.APP_TO_PROCESS); return MessageFormat.format(Messages.ERROR_STAGING_APP_0, application.getName()); } PollStageAppStatusExecution(RecentLogsRetriever recentLogsRetriever, ApplicationStager applicationStager); }
PollStageAppStatusExecution implements AsyncExecution { @Override public String getPollingErrorMessage(ProcessContext context) { CloudApplication application = context.getVariable(Variables.APP_TO_PROCESS); return MessageFormat.format(Messages.ERROR_STAGING_APP_0, application.getName()); } PollStageAppStatusExecution(RecentLogsRetriever recentLogsRetriever, ApplicationStager applicationStager); @Override AsyncExecutionState execute(ProcessContext context); @Override String getPollingErrorMessage(ProcessContext context); }
PollStageAppStatusExecution implements AsyncExecution { @Override public String getPollingErrorMessage(ProcessContext context) { CloudApplication application = context.getVariable(Variables.APP_TO_PROCESS); return MessageFormat.format(Messages.ERROR_STAGING_APP_0, application.getName()); } PollStageAppStatusExecution(RecentLogsRetriever recentLogsRetriever, ApplicationStager applicationStager); @Override AsyncExecutionState execute(ProcessContext context); @Override String getPollingErrorMessage(ProcessContext context);  }