Easymock question

2009-12-16 Thread pieter claassen
I am trying to mock my DAO's, but I am not sure if I understand easymock correctly. In my WicketSession I store a user ID and use this to retrieve the current logged in user from the database (by calling Spring injected userFactory.getById((String)userId)). Below is my setUp() for Junit. But the

Re: Easymock question

2009-12-16 Thread John Krasnay
Is UserFactory an interface or an implementation class? jk On Wed, Dec 16, 2009 at 09:02:16PM +0100, pieter claassen wrote: > I am trying to mock my DAO's, but I am not sure if I understand easymock > correctly. > > In my WicketSession I store a user ID and use this to retrieve the current > log

Re: Easymock question

2009-12-16 Thread pieter claassen
Hi John, UserFactory is a class and I am using EasyMocks class extensions. import static org.easymock.classextension.EasyMock.*; Thanks, Pieter On Wed, Dec 16, 2009 at 9:38 PM, John Krasnay wrote: > Is UserFactory an interface or an implementation class? > > jk > > On Wed, Dec 16, 2009 at 0