views:

130

answers:

1

Is there an equivalent to NUnit's ExpectedException or Assert.Throws<> in jUnit?

+2  A: 

@Test(expected = org.dom4j.DocumentException.class)

Tim
only available in jUnit4
jitter