Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testNullInput (0.2 sec)

  1. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

          escapeAsString(SIMPLE_ESCAPER, test);
          fail("Trailing high surrogate should cause exception");
        } catch (IllegalArgumentException expected) {
          // Pass
        }
      }
    
      public void testNullInput() {
        UnicodeEscaper e = SIMPLE_ESCAPER;
        try {
          e.escape((String) null);
          fail("Null string should cause exception");
        } catch (NullPointerException expected) {
          // Pass
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

          escapeAsString(SIMPLE_ESCAPER, test);
          fail("Trailing high surrogate should cause exception");
        } catch (IllegalArgumentException expected) {
          // Pass
        }
      }
    
      public void testNullInput() {
        UnicodeEscaper e = SIMPLE_ESCAPER;
        try {
          e.escape((String) null);
          fail("Null string should cause exception");
        } catch (NullPointerException expected) {
          // Pass
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
Back to top