dev@glassfish.java.net

Re: junit _at_Test(expected=...) not working

From: Lloyd L Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Thu, 17 Apr 2008 17:16:31 -0700

OK, gotta go find your directions for doing that...

On Apr 17, 2008, at 4:59 PM, Byron Nevins wrote:
> I use that construct frequently with no problems.
> I recommend stepping through the test in a debugger...
>
>
> Lloyd L Chambers wrote:
>> I have a unit test with:
>>
>> @Test(expected=IllegalArgumentException.class)
>>
>> When the test is run as part of the build, an
>> IllegalArgumentException is thrown, and the test is marked as failed!
>>
>> Is the V3 run environment not checking for expected() failures?
>>
>> Lloyd
>> ---
>> Lloyd L Chambers
>> lloyd.chambers_at_sun.com
>> Sun Microsystems, Inc
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> --
> Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123
> - Sun Microsystems, Inc.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

---
Lloyd L Chambers
lloyd.chambers_at_sun.com
Sun Microsystems, Inc