dev@glassfish.java.net

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

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Thu, 17 Apr 2008 16:59:13 -0700

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.