dev@glassfish.java.net

junit _at_Test(expected=...) not working

From: Lloyd L Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Thu, 17 Apr 2008 13:44:43 -0700

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