Add testPrintOnePositiveInteger().
This commit is contained in:
parent
47d11b853f
commit
0c3bf8266d
|
@ -812,6 +812,15 @@ public class CSVPrinterTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPrintOnePositiveInteger() throws IOException {
|
||||
final StringWriter sw = new StringWriter();
|
||||
try (final CSVPrinter printer = new CSVPrinter(sw, CSVFormat.DEFAULT.withQuoteMode(QuoteMode.MINIMAL))) {
|
||||
printer.print(Integer.MAX_VALUE);
|
||||
assertEquals(String.valueOf(Integer.MAX_VALUE), sw.toString());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPrintToFileWithCharsetUtf16Be() throws IOException {
|
||||
File file = File.createTempFile(getClass().getName(), ".csv");
|
||||
|
|
Loading…
Reference in New Issue