Add testRFC4180().
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1458637 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6b1eaad5a6
commit
8f0d0e03d6
|
@ -162,6 +162,17 @@ public class CSVFormatBuilderTest {
|
|||
assertEquals(RFC4180, copyOfRCF4180);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRFC4180() {
|
||||
assertEquals(null, RFC4180.getCommentStart());
|
||||
assertEquals(',', RFC4180.getDelimiter());
|
||||
assertEquals(null, RFC4180.getEscape());
|
||||
assertEquals(false, RFC4180.getIgnoreEmptyLines());
|
||||
assertEquals(Character.valueOf('"'), RFC4180.getQuoteChar());
|
||||
assertEquals(null, RFC4180.getQuotePolicy());
|
||||
assertEquals("\r\n", RFC4180.getRecordSeparator());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCopiedFormatWithChanges() {
|
||||
final CSVFormat newFormat = CSVFormat.newBuilder(RFC4180).withDelimiter('!').build();
|
||||
|
|
Loading…
Reference in New Issue