Hello,
My boss has given me the charge of developing tests for our web application (
Tomcat +
JSP +
struts + business logic + DB).
I would like to start with our business layer objects, which are populated from the database.
I have seen MockObjects and Cactus mentioned and read briefly about them. They seem pretty in depth, and I'd rather not delve further into them if there is a convenient way to
unit test my objects with normal
JUnit tests.
Anyhow, is MockObjects/Cactus my best bet or is there a way to construct an object in a unit test where the object is populated from a database (db connection handled by tomcat)?
Any thoughts or links are appreciated.