@Test public void writeQuotes() { StringWriter writer = new StringWriter(); CSVPrint csvPrint = CSVUtil.createCSVPrint(writer); csvPrint.print("hello \"world\""); assertThat(writer.toString(), is("\"hello \"\"world\"\"\"")); }
@Test public void writeQuotes() { StringWriter writer = new StringWriter(); CSVPrint csvPrint = CSVUtil.createCSVPrint(writer); csvPrint.print("hello \"world\""); assertThat(writer.toString(), is("\"hello \"\"world\"\"\"")); }