Skip to content

Commit b4b9a6b

Browse files
committed
Sort members.
1 parent da4d2e5 commit b4b9a6b

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

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

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@
6767
*/
6868
public class CSVPrinterTest {
6969

70-
private static final char EURO_CH = '\u20AC';
71-
private static final char DQUOTE_CHAR = '"';
7270
private static final char BACKSLASH_CH = '\\';
73-
private static final char QUOTE_CH = '\'';
71+
private static final char DQUOTE_CHAR = '"';
72+
private static final char EURO_CH = '\u20AC';
7473
private static final int ITERATIONS_FOR_RANDOM_TEST = 50000;
74+
private static final char QUOTE_CH = '\'';
7575

7676
private static String printable(final String s) {
7777
final StringBuilder sb = new StringBuilder();
@@ -86,9 +86,10 @@ private static String printable(final String s) {
8686
return sb.toString();
8787
}
8888

89-
private final String recordSeparator = CSVFormat.DEFAULT.getRecordSeparator();
90-
9189
private String longText2;
90+
91+
private final String recordSeparator = CSVFormat.DEFAULT.getRecordSeparator();
92+
9293
private void doOneRandom(final CSVFormat format) throws Exception {
9394
final Random r = new Random();
9495

@@ -141,11 +142,6 @@ private <T> T[] expectNulls(final T[] original, final CSVFormat csvFormat) {
141142
return fixed;
142143
}
143144

144-
private Connection getH2Connection() throws SQLException, ClassNotFoundException {
145-
Class.forName("org.h2.Driver");
146-
return DriverManager.getConnection("jdbc:h2:mem:my_test;", "sa", "");
147-
}
148-
149145
private String[][] generateLines(final int nLines, final int nCol) {
150146
final String[][] lines = new String[nLines][];
151147
for (int i = 0; i < nLines; i++) {
@@ -158,6 +154,11 @@ private String[][] generateLines(final int nLines, final int nCol) {
158154
return lines;
159155
}
160156

157+
private Connection getH2Connection() throws SQLException, ClassNotFoundException {
158+
Class.forName("org.h2.Driver");
159+
return DriverManager.getConnection("jdbc:h2:mem:my_test;", "sa", "");
160+
}
161+
161162
private CSVPrinter printWithHeaderComments(final StringWriter sw, final Date now, final CSVFormat baseFormat)
162163
throws IOException {
163164
CSVFormat format = baseFormat;

0 commit comments

Comments
 (0)