How to write unit test cases for Spring Batch application that read from database and write to csv?

Viewed 41

I have created one spring batch application that basically reads from a databse and write it into a csv file. The application has a job and one step. In that one step I am reading, processing and writing to the file. These tasks are done by reader, processor and writer respectively.

Now I want to write unit test cases for these all in Junit.

How should I go about it?

1 Answers
Related