Hi again!
Vincent Massol wrote:
> you can if you want by just implementing a mock ServletConfig and calling
> myServlet.init(mockServletConfig) ...
Yes, we did that.
> great ! I was also considering integrating the Mock Object framework located
> at http://sourceforge.net/projects/mockobjects. That's of course providing
> they do accept .... :-) But we're getting too far ahead .... Nothing has
> been decided yet ! I want to have the opinion of everyone first, then do
> some experiment with mock objects in an experimental Cactus2 version, ....
Well, perhaps you'd like to do the experiments with our framework. Hmmm,
there's some competition... :)
> That's the problem with Mock Objects. You can test methods individually but
> when it comes to testing interactions between objects, it is not very good.
> I would say that Cactus as it is in its current form is better suited for
> that ...
I'll try it. But I thought you didn't support EJB's yet.
> > If you care to have a look at what we've got, I'll send them along.
> >
>
> Sure. Please do so. I'll be happy to have a look.
There you go, inside the attached zip file there are 6 Java classes for
the most common necessities. As a mock object framework, we've only
included the things we needed along the way. And, by the way, in our
test framework we test with the main() method, this can of course be
changed.
> Muchas Gracias para tu tiempo y tu ayuda ...
> Hasta luego
Hehehe :) By the way, I tried to translate all comments and variable
names, but don't get frightened if you find some remaining.
Un saludo,
Alex.
Mock.zip