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
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
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