hi Enrique,
Thanks for your quick
response. Yes, I understood the signature of the method. But
how it should be implemented
in ComponentTestCase & AspectBasedMethodInterceptor?
So that I can mock the
different exceptions raised by different class methods which
provides service to the
testing method.
Please send me the
implementation details for setMockException() if you have.
Thanx in advance.
--tnx
Venkat
-----
Original Message -----
Sent:
Monday, May 12, 2003 6:53 PM
Subject:
Re: [aspectj-users] AspectJ: help on setMockException()
Venkat Dosapati wrote:
Hello everybody,
I read artical on 'Virtual Mock Objects using AspectJ with JUNIT' by Simon Monk.
In the end of the artical
I read something about setMockException().
have anyone
used setMockException(method,
exception) for your junit testing?
I am not able to access
eclipse user groups.
Thanx in advance!
----
Venkat Dosapati
I downloaded the sample code and I saw that setMockException isn't
implemented. I understand that setMockException indicates that the
method (first parameter) must throw an exception (the second
parameter)
Enrique J. Amodeo Rubio.
Here follows a quick draft of code (untested, uncompiled) only to catch
the idea: