query: How to test exception in Java Junit
positive_passages.docid: 8564
positive_passages.text: How do you assert that a certain exception is thrown in JUnit 4 tests?
negative_passages.docid: 100855
negative_passages.text: If an exception is raised ask again for input
negative_passages.docid: 67309
negative_passages.text: Test Code coverage catch block
negative_passages.docid: 147068
negative_passages.text: JUnit @Test expected annotation not working
negative_passages.docid: 8203
negative_passages.text: How to avoid the system.Limit.exception error in test class
negative_passages.docid: 12194
negative_passages.text: What is the difference between throw and throw with arg of caught exception?
negative_passages.docid: 79676
negative_passages.text: How can I determine which exceptions can be thrown by a given method?
negative_passages.docid: 151381
negative_passages.text: moq - how to verify method has not been called if the class swallows exceptions
negative_passages.docid: 144946
negative_passages.text: What does the Java assert keyword do, and when should it be used?
negative_passages.docid: 12844
negative_passages.text: Is there a way to "fail fast" for junit with the maven surefire plugin?
negative_passages.docid: 2116
negative_passages.text: IllegalArgumentException or NullPointerException for a null parameter?
negative_passages.docid: 142525
negative_passages.text: How to treat exceptions in constructor best?
negative_passages.docid: 13138
negative_passages.text: How to pass java code a parameter from maven for testing
negative_passages.docid: 55274
negative_passages.text: Java: Exception itself is null
negative_passages.docid: 66058
negative_passages.text: In Java, when should I create a checked exception, and when should it be a runtime exception?
negative_passages.docid: 60420
negative_passages.text: Can constructors throw exceptions in Java?
negative_passages.docid: 157098
negative_passages.text: What does  signify in a Java exception?