Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for oneArgCorrectlyThrowsNpe (0.08 seconds)

  1. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        }
    
        public static void staticOneArgNullableThrowsNpe(@Nullable String s) {
          checkNotNull(s); // doesn't check if you said you'd accept null, but you don't
        }
    
        public void oneArgCorrectlyThrowsNpe(String s) {
          checkNotNull(s); // expect NPE here on null
        }
    
        public void oneArgThrowsOtherThanNpe(String s) {
          throw new FooException(); // should catch as failure
        }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 47.8K bytes
    - Click Count (0)
Back to Top