Home
last modified time | relevance | path

Searched refs:xmlEscaper (Results 1 – 1 of 1) sorted by relevance

/external/guava/guava-tests/test/com/google/common/xml/
DXmlEscapersTest.java58 private void assertBasicXmlEscaper(CharEscaper xmlEscaper, in assertBasicXmlEscaper() argument
61 assertEquals("xxx", xmlEscaper.escape("xxx")); in assertBasicXmlEscaper()
63 xmlEscaper.escape("test & test & test")); in assertBasicXmlEscaper()
64 assertEquals("test &lt;&lt; 1", xmlEscaper.escape("test << 1")); in assertBasicXmlEscaper()
65 assertEquals("test &gt;&gt; 1", xmlEscaper.escape("test >> 1")); in assertBasicXmlEscaper()
66 assertEquals("&lt;tab&gt;", xmlEscaper.escape("<tab>")); in assertBasicXmlEscaper()
73 assertEquals(s, xmlEscaper.escape(s)); in assertBasicXmlEscaper()
80 assertEscaping(xmlEscaper, "&#x" + Integer.toHexString(ch).toUpperCase() + ";", ch); in assertBasicXmlEscaper()
82 assertUnescaped(xmlEscaper, ch); in assertBasicXmlEscaper()
86 assertEscaping(xmlEscaper, "\uFFFD", ch); in assertBasicXmlEscaper()
[all …]