@Test public void testCompatibleReturnTypeWhenVoid() throws Exception { adapter.setTargetMethod("execute7"); RepeatStatus repeatStatus = adapter.execute(stepContribution, chunkContext); assertEquals(RepeatStatus.FINISHED, repeatStatus); }
@Override public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception { if (getArguments() == null) { setArguments(new Object[]{contribution, chunkContext}); } contribution.setExitStatus(mapResult(invokeDelegateMethod())); return RepeatStatus.FINISHED; }
MethodInvokingTaskletAdapter extends AbstractMethodInvokingDelegator<Object> implements Tasklet { @Override public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception { if (getArguments() == null) { setArguments(new Object[]{contribution, chunkContext}); } contribution.setExitStatus(mapResult(invokeDelegateMethod())); return RepeatStatus.FINISHED; } }
MethodInvokingTaskletAdapter extends AbstractMethodInvokingDelegator<Object> implements Tasklet { @Override public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception { if (getArguments() == null) { setArguments(new Object[]{contribution, chunkContext}); } contribution.setExitStatus(mapResult(invokeDelegateMethod())); return RepeatStatus.FINISHED; }  }
MethodInvokingTaskletAdapter extends AbstractMethodInvokingDelegator<Object> implements Tasklet { @Override public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception { if (getArguments() == null) { setArguments(new Object[]{contribution, chunkContext}); } contribution.setExitStatus(mapResult(invokeDelegateMethod())); return RepeatStatus.FINISHED; }  @Override RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext); }
MethodInvokingTaskletAdapter extends AbstractMethodInvokingDelegator<Object> implements Tasklet { @Override public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception { if (getArguments() == null) { setArguments(new Object[]{contribution, chunkContext}); } contribution.setExitStatus(mapResult(invokeDelegateMethod())); return RepeatStatus.FINISHED; }  @Override RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext);  }