This content has been marked as final.
Show 1 reply
-
1. Re: Best Practice for JUnit test with EJB3
rexorient Mar 2, 2005 9:29 AM (in response to kevinvinsen)Since I have EJB methods to store and retreive data, I connect to the deployed application from the junit tests and compare retrieval results with what I stored. I don't check what's in the database directly.
On the EJB interface, most of what I'm testing is business logic... does it respond correctly for the correct and incorrect data I feed it.