public void testNoNulCharactersThreeChars() throws IOException { testNoNulCharacters("ABC", "ABC"); }
@Test public void testNoNulCharactersXml() throws IOException { testNoNulCharacters("<test attr1='val1' attr2=\"value2\">X</test>", "\"<test attr1='val1' attr2=\"\"value2\"\">X</test>\""); } }
@Test public void testNoNulCharactersDoubleQuote() throws IOException { // TODO This does not seem right but there is no NULs. Check Apache Commons CSV. testNoNulCharacters("\"", "\"\"\"\""); }
@Test public void testNoNulCharactersOneChar() throws IOException { testNoNulCharacters("A", "A"); }
@Test public void testNoNulCharactersOpenSquare() throws IOException { // TODO Why is the char quoted? Check Apache Commons CSV. testNoNulCharacters("[", "["); }
@Test public void testNoNulCharactersOpenCurly() throws IOException { testNoNulCharacters("{", "{"); }
@Test public void testNoNulCharactersJson() throws IOException { testNoNulCharacters("{\"id\":10,\"name\":\"Alice\"}", "\"{\"\"id\"\":10,\"\"name\"\":\"\"Alice\"\"}\""); }
@Test public void testNoNulCharactersOpenParen() throws IOException { testNoNulCharacters("(", "("); }