@Test public void testExecute() throws Exception { assertEquals(RepeatStatus.FINISHED, tasklet.execute(null, null)); assertEquals("Hello World!", outContent.toString()); }
@Override public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception { System.out.print("Hello World!"); return RepeatStatus.FINISHED; }
HelloWorldTasklet implements Tasklet { @Override public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception { System.out.print("Hello World!"); return RepeatStatus.FINISHED; } }
HelloWorldTasklet implements Tasklet { @Override public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception { System.out.print("Hello World!"); return RepeatStatus.FINISHED; }  }
HelloWorldTasklet implements Tasklet { @Override public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception { System.out.print("Hello World!"); return RepeatStatus.FINISHED; }  @Override RepeatStatus execute(StepContribution contribution, 
                                ChunkContext chunkContext); }
HelloWorldTasklet implements Tasklet { @Override public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception { System.out.print("Hello World!"); return RepeatStatus.FINISHED; }  @Override RepeatStatus execute(StepContribution contribution, 
                                ChunkContext chunkContext);  }