@Before public void setUp() throws Exception { tasklet.setTargetObject(this); }
@Before public void setUp() throws Exception { stepContribution = new StepContribution(mock(StepExecution.class)); chunkContext = mock(ChunkContext.class); tasklet = new TestTasklet(); adapter = new MethodInvokingTaskletAdapter(); adapter.setTargetObject(tasklet); }