Skip to content
Permalink
Browse files
Sort members.
  • Loading branch information
garydgregory committed Jul 5, 2021
1 parent da4d2e5 commit b4b9a6bc0e24d65e3696bea4a61c0996d519f919
Showing 1 changed file with 11 additions and 10 deletions.
@@ -67,11 +67,11 @@
*/
public class CSVPrinterTest {

private static final char EURO_CH = '\u20AC';
private static final char DQUOTE_CHAR = '"';
private static final char BACKSLASH_CH = '\\';
private static final char QUOTE_CH = '\'';
private static final char DQUOTE_CHAR = '"';
private static final char EURO_CH = '\u20AC';
private static final int ITERATIONS_FOR_RANDOM_TEST = 50000;
private static final char QUOTE_CH = '\'';

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

private final String recordSeparator = CSVFormat.DEFAULT.getRecordSeparator();

private String longText2;

private final String recordSeparator = CSVFormat.DEFAULT.getRecordSeparator();

private void doOneRandom(final CSVFormat format) throws Exception {
final Random r = new Random();

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

private Connection getH2Connection() throws SQLException, ClassNotFoundException {
Class.forName("org.h2.Driver");
return DriverManager.getConnection("jdbc:h2:mem:my_test;", "sa", "");
}

private String[][] generateLines(final int nLines, final int nCol) {
final String[][] lines = new String[nLines][];
for (int i = 0; i < nLines; i++) {
@@ -158,6 +154,11 @@ private String[][] generateLines(final int nLines, final int nCol) {
return lines;
}

private Connection getH2Connection() throws SQLException, ClassNotFoundException {
Class.forName("org.h2.Driver");
return DriverManager.getConnection("jdbc:h2:mem:my_test;", "sa", "");
}

private CSVPrinter printWithHeaderComments(final StringWriter sw, final Date now, final CSVFormat baseFormat)
throws IOException {
CSVFormat format = baseFormat;

0 comments on commit b4b9a6b

Please sign in to comment.