Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
is there a way to get a method to raise an exception in a mockobject?
But then, should I be doing this? should I be trying to test the
exception handling code I've written?
There isn't a generic method for throwing exception but there are place
in the code which support throwing specific exceptions. e.g.
Yes exceptions should be tested for (Though I suspect that it's not done
nearly enough). This is one of the big advantages of mocks.
On Thu, 2002-09-19 at 06:33, denis krizanovic wrote:
> Hi -
> is there a way to get a method to raise an exception in a mockobject?
> But then, should I be doing this? should I be trying to test the
> exception handling code I've written?
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> Mockobjects-java-dev mailing list
mobile: 44 (0) 78 5547 8331
phone: 44 (0) 20 2226 4545
Sign up for the SourceForge newsletter: