Searched refs:xmlEscaper (Results 1 – 2 of 2) sorted by relevance
/external/guava/guava-tests/test/com/google/common/xml/ |
D | XmlEscapersTest.java | 58 CharEscaper xmlEscaper, boolean shouldEscapeQuotes, boolean shouldEscapeWhitespaceChars) { in assertBasicXmlEscaper() argument 60 assertEquals("xxx", xmlEscaper.escape("xxx")); in assertBasicXmlEscaper() 61 assertEquals("test & test & test", xmlEscaper.escape("test & test & test")); in assertBasicXmlEscaper() 62 assertEquals("test << 1", xmlEscaper.escape("test << 1")); in assertBasicXmlEscaper() 63 assertEquals("test >> 1", xmlEscaper.escape("test >> 1")); in assertBasicXmlEscaper() 64 assertEquals("<tab>", xmlEscaper.escape("<tab>")); in assertBasicXmlEscaper() 72 assertEquals(s, xmlEscaper.escape(s)); in assertBasicXmlEscaper() 79 assertEscaping(xmlEscaper, "&#x" + Integer.toHexString(ch).toUpperCase() + ";", ch); in assertBasicXmlEscaper() 81 assertUnescaped(xmlEscaper, ch); in assertBasicXmlEscaper() 85 assertEscaping(xmlEscaper, "\uFFFD", ch); in assertBasicXmlEscaper() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/xml/ |
D | XmlEscapersTest.java | 58 CharEscaper xmlEscaper, boolean shouldEscapeQuotes, boolean shouldEscapeWhitespaceChars) { in assertBasicXmlEscaper() argument 60 assertEquals("xxx", xmlEscaper.escape("xxx")); in assertBasicXmlEscaper() 61 assertEquals("test & test & test", xmlEscaper.escape("test & test & test")); in assertBasicXmlEscaper() 62 assertEquals("test << 1", xmlEscaper.escape("test << 1")); in assertBasicXmlEscaper() 63 assertEquals("test >> 1", xmlEscaper.escape("test >> 1")); in assertBasicXmlEscaper() 64 assertEquals("<tab>", xmlEscaper.escape("<tab>")); in assertBasicXmlEscaper() 72 assertEquals(s, xmlEscaper.escape(s)); in assertBasicXmlEscaper() 79 assertEscaping(xmlEscaper, "&#x" + Integer.toHexString(ch).toUpperCase() + ";", ch); in assertBasicXmlEscaper() 81 assertUnescaped(xmlEscaper, ch); in assertBasicXmlEscaper() 85 assertEscaping(xmlEscaper, "\uFFFD", ch); in assertBasicXmlEscaper() [all …]
|