@Qualifier("jobs/executions/steps")
private View view;
@Test
public void testLaunchViewWithStepExecutions() throws Exception {
StepExecution stepExecution = MetaDataInstanceFactory.createStepExecution();
model.put("stepExecutions", Arrays.asList(new StepExecutionInfo(stepExecution, TimeZone.getTimeZone("GMT"))));
model.put("jobExecutionInfo",
new JobExecutionInfo(stepExecution.getJobExecution(), TimeZone.getTimeZone("GMT")));
view.render(model, request, response);
String content = response.getContentAsString();
// System.err.println(content);
assertTrue(content.contains("Step Executions"));
assertTrue(content.contains("for Job = job"));