Package org.springframework.batch.core.step.tasklet

Examples of org.springframework.batch.core.step.tasklet.Tasklet.execute()


        StepContext stepContext = Mockito.mock(StepContext.class);
        Mockito.when(stepContext.getStepExecution()).thenReturn(stepExecution);

        ChunkContext chunkContext = Mockito.mock(ChunkContext.class);
        Mockito.when(chunkContext.getStepContext()).thenReturn(stepContext);
        tasklet.execute(contribution, chunkContext);

        Operation op = assertOperationDetails(getFirstEntered(), "execute", stepExecution.getStepName());
        assertOperationPath(op, stepExecution);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.