- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for staticOneArgThrowsOtherThanNpe (0.21 sec)
-
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
public static class OneArg { public static void staticOneArgCorrectlyThrowsNpe(String s) { checkNotNull(s); // expect NPE here on null } public static void staticOneArgThrowsOtherThanNpe(String s) { throw new FooException(); // should catch as failure } public static void staticOneArgShouldThrowNpeButDoesnt(String s) { // should catch as failure }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Nov 16 15:12:31 GMT 2023 - 47.9K bytes - Viewed (0)