Mock objects (was RE: Subversion migration done)
Hi Luis (switching list)
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Luis Arias Sent: vendredi 15 avril 2005 08:38 To: XWiki.org Developers Mailing List Subject: Re: Subversion migration done
[snip]
P.S. I have some questions about using MockObjects in my LifeblogTest. The problem being that it seems to me that most existing tests go through cactus and require a container. So I'm getting null pointers and stuff because the XWiki object is not set up right. So per your suggestion I'm going to try to do this through jmock and mockobjects (I need both right ?). I didn't see jdk5 jars in the mockobjects tar file so I suppose I should use the 1.4 j2ee 1.3 ones.
I'm going through the doc and I'll post some detailed questions later on if I need too.
JMock dynamically generate the mocks for you so there's no need to have any mock class anywhere. JMock/EasyMock/DynaMock all use what is called dynamic mocks as opposed to static mocks that was done by the mockobjects.jar jar before. Check the JMock getting started guide: http://jmock.codehaus.org/getting-started.html [snip] Thanks -Vincent
participants (1)
-
Vincent Massol