The biggest problem with Mock Objects, is that it assumes that each tested
method, receives the mockable object as a parameter. I know that designers
believe that this is the right way to do stuff, but:
1. It is not always possible.
2. Sometimes you test old code.
3. This argument is questionable.
If you are lucky, you were using a factory where you didn't implement your
method as 'expected'.
You EasyMock is a classic solution where a developer is using a factory, and
I think such an example would be a great added value.
If you don't think otherwise, I would be happy to supply you with some of my
code.
Thanks
______________________________
Oren Gross, Software Developer
Mercury Interactive, APM - R&D
+972-3-5399407, og...@me... <mailto:og...@me...>
-----Original Message-----
From: Tammo Freese [mailto:tam...@of...]
Sent: Monday, September 02, 2002 5:54 PM
To: Oren Gross
Subject: Re: java.lang.Proxy
Oren Gross wrote:
> It works!
Great!
If you encounter any additional problems, please let me know.
Greetings,
-
Tammo Freese
|