diff options
Diffstat (limited to 'common/tests')
-rw-r--r-- | common/tests/src/com/android/utils/XmlUtilsTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/tests/src/com/android/utils/XmlUtilsTest.java b/common/tests/src/com/android/utils/XmlUtilsTest.java index 6c28451..ea33346 100644 --- a/common/tests/src/com/android/utils/XmlUtilsTest.java +++ b/common/tests/src/com/android/utils/XmlUtilsTest.java @@ -16,7 +16,6 @@ package com.android.utils; import com.android.SdkConstants; -import com.android.utils.XmlUtils; import org.w3c.dom.Attr; import org.w3c.dom.Document; @@ -79,6 +78,10 @@ public class XmlUtilsTest extends TestCase { assertEquals("<"'>&", sb.toString()); } + public void testToXmlTextValue() throws Exception { + assertEquals("<\"'>&", XmlUtils.toXmlTextValue("<\"'>&")); + } + public void testAppendXmlTextValue() throws Exception { StringBuilder sb = new StringBuilder(); XmlUtils.appendXmlTextValue(sb, "<\"'>&"); |