Results 1 to 1 of 1
Thread: EasyMock or Bean setters?
- 02-14-2012, 12:34 AM #1Member
- Join Date
- Jan 2012
- Rep Power
EasyMock or Bean setters?
I am working on writing some JUnits for a given set of classes. Some of these classes have Dao's (Data Access Objects) that run various queries and return data (usually in the form of Beans).
I am new to EasyMock and it seems its a tool focused more on mocking out the actual Dao's and creating mock objects in their place.
So my question is this...
Would the best solution be to use EasyMock and create an entire set of test objects (hardcoded with static data for each Dao call), or would it be best to just manually setup my data via getters and setters per test case and not use EasyMock at all?
I appreciate your responses,
- By gurpreet.singh in forum Advanced JavaReplies: 1Last Post: 03-23-2011, 08:55 AM
- By Charliestons in forum New To JavaReplies: 10Last Post: 09-12-2008, 10:57 PM
- By parimal in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 08-28-2008, 01:34 PM
- By Java Tip in forum Java TipReplies: 0Last Post: 03-30-2008, 10:03 AM
- By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:36 PM