commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Jonker <...@pobox.com>
Subject Re: [jelly] unit testing: detecting exceptions
Date Sun, 01 Dec 2002 21:48:43 GMT
On 11/28/02 6:20 AM, knut.wannheden@paranor.ch wrote:

>> <test:assertThrown expectedThrowable="MyException">
>>    <!-- do something -->
>> </test:assertThrown>
>> 
> 
> Good suggestions.  I have sent a patch to the dev list now which includes
> the <test:assertThrown/> tag as you describe it.  I was thinking if not
> maybe the name should be <test:assertThrows/> instead?

Groovy!  I look forward to trying it out.

I suggested "assertThrown" as in "I assert that an exception will be
thrown".  I certainly wouldn't complain about "ssertThrows" though.  :-)

.T.

-- 
Happiness is the absence of the striving for happiness.
  -- Chuang-tzu (B.C. 350)


Mime
View raw message