Yeah of course :) In the last months I have a number of projects using jMock or easymock so I decided to give them a try to see if they are good tool. On http://www.mockobjects.com/ web site, they were saying that in TDD terminology, stubs were just basically fake objects allowing you to run your tests without having to interact with a container or external systems. No problem there, that how I always taugh of Mock objects.But then they went on saying mock objects are a way to verify the interactions between the tested objects and the other application objects and you can do this quite easily with easymock.
I was quite confused. Do I need to use a test framework like jMock or easymock? Why every frameworks, like Shale, now have test projects if some test frameworks allow you to build your mock objects dynamically? But just after that I stumbled upon a great article on Martin Fowler site that I think answered my questions. http://www.martinfowler.com/articles/mocksArentStubs.html >From what I get you can use the traditionnal state based testing approach or the new one based on object behavior with the other objects. So basically it answered my question but I am putting it here in case some people have the same concerns. >From what I see Shale developpers seem to prefer using the traditionnal approach and not using those frameworks. Well I was wondering if you had any experience with them or any toughts. I see several projects using them. I guess for the moment I will stick with the traditional approach and use Shale test package but if some people had experience with them and Shale test package I would like to hear your experience. Thank! Sorry for the long post :) On 1/16/ 06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 1/16/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote: > > > > Ok I'm coming back after having done some reading. From what I > > understand it's seem the shale test framework provides you stub > > objects but they aren't true mock objects as in EasyMock or jMocks. Am > > I correct? > > > Can you be a little more specific on your terminology? What do you see as > the differences between "stub" and "true" mock objects? > > Craig > > -- Alexandre Poitras Québec, Canada --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]