« Return to Thread: JMock noob with jmock DAO woes

JMock noob with jmock DAO woes

by David Brown-48 :: Rate this Message:

Reply to Author | View in Thread

Hello jmock dev, gurus and mortals, I am a jmock noob. I was introduced to jmock via an appfuse web app. I have all of the app testcases working correctly except for the jmock testcases. I have been reading the jmock doco but I realize that I won't master jmock for some time. I have some Java DAO testcases that actually access the target DB with passing results. The jmock testing with a similare testcase and the same classes and methods fail. I don't want to exclude the jmock from my testcase harness just because I can't understand why the same testcases in realtime don't match up with the jmock test cases. Please advise, David.




******************************
org.jmock.core.DynamicMockError: mockBullmasterDAO: tried to return null value from method returning int
Invoked: mockBullmasterDAO.deleteByPrimaryKey(<1L>)

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: JMock noob with jmock DAO woes