Welcome to CodeRanch!
Pooja Gadre wrote:Is the server on which the project is usually run , supposed to be started when i want to run the Junit test cases?
Only if you are trying to test on the server, say with a remote call. It is valid to test without the server to test the database code. We do this here on JForum.
Pooja Gadre wrote:And cant we write DB operations testing in Junit? instead of dbunit?
Of course. DBUnit sits on top of JUnit to make database loads easier.
What error are you getting with that code?