Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for nullEscaper (0.11 sec)

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

    import junit.framework.TestCase;
    
    /** @author David Beaumont */
    @GwtCompatible
    public class EscapersTest extends TestCase {
      public void testNullEscaper() throws IOException {
        Escaper escaper = Escapers.nullEscaper();
        EscaperAsserts.assertBasic(escaper);
        String s = "\0\n\t\\az09~\uD800\uDC00\uFFFF";
        assertEquals("null escaper should have no effect", s, escaper.escape(s));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top