Skip to content

Commit f6c9a36

Browse files
committed
Group quote test fragments together.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398011 13f79535-47bb-0310-9956-ffa450edef68
1 parent ecea0c3 commit f6c9a36

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/test/java/org/apache/commons/csv/CSVFormatTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ public void testImmutalibity() {
3939

4040
format.withDelimiter('?');
4141
format.withQuoteChar('?');
42+
format.withQuotePolicy(Quote.ALL);
4243
format.withCommentStart('?');
4344
format.withLineSeparator("?");
4445
format.withEscape('?');
4546
format.withIgnoreSurroundingSpaces(false);
4647
format.withIgnoreEmptyLines(false);
47-
format.withQuotePolicy(Quote.ALL);
4848

4949
assertEquals('!', format.getDelimiter());
5050
assertEquals('!', format.getQuoteChar().charValue());
@@ -64,14 +64,13 @@ public void testMutators() {
6464

6565
assertEquals('?', format.withDelimiter('?').getDelimiter());
6666
assertEquals('?', format.withQuoteChar('?').getQuoteChar().charValue());
67+
assertEquals(Quote.ALL, format.withQuotePolicy(Quote.ALL).getQuotePolicy());
6768
assertEquals('?', format.withCommentStart('?').getCommentStart().charValue());
6869
assertEquals("?", format.withLineSeparator("?").getLineSeparator());
6970
assertEquals('?', format.withEscape('?').getEscape().charValue());
7071

7172
assertFalse(format.withIgnoreSurroundingSpaces(false).getIgnoreSurroundingSpaces());
7273
assertFalse(format.withIgnoreEmptyLines(false).getIgnoreEmptyLines());
73-
74-
assertEquals(Quote.ALL, format.withQuotePolicy(Quote.ALL).getQuotePolicy());
7574
}
7675

7776
@Test

0 commit comments

Comments
 (0)