public class FooTest { //this test is succeeded @Test(expected=NumberFormatException.class) public void testException() { throw new NumberFormatException(); } }
No comments:
Post a Comment