@@ -710,7 +710,7 @@ public void testExcelPrintAllIterableOfLists() throws IOException {
710710 }
711711
712712 @ ParameterizedTest
713- @ ValueSource (longs = { -1 , 0 , 1 , 2 , Integer .MAX_VALUE })
713+ @ ValueSource (longs = { -1 , 0 , 1 , 2 , Long .MAX_VALUE })
714714 public void testExcelPrintAllStreamOfArrays (final long maxRows ) throws IOException {
715715 final StringWriter sw = new StringWriter ();
716716 final CSVFormat format = CSVFormat .EXCEL .builder ().setMaxRows (maxRows ).get ();
@@ -840,7 +840,7 @@ public void testJdbcPrinterWithFirstEmptyValue2() throws IOException, ClassNotFo
840840 }
841841
842842 @ ParameterizedTest
843- @ ValueSource (longs = { -1 , 0 , 1 , 2 , 3 , 4 , Integer .MAX_VALUE })
843+ @ ValueSource (longs = { -1 , 0 , 1 , 2 , 3 , 4 , Long .MAX_VALUE })
844844 public void testJdbcPrinterWithResultSet (final long maxRows ) throws IOException , ClassNotFoundException , SQLException {
845845 final StringWriter sw = new StringWriter ();
846846 final CSVFormat format = CSVFormat .DEFAULT .builder ().setMaxRows (maxRows ).get ();
@@ -864,11 +864,11 @@ public void testJdbcPrinterWithResultSet(final long maxRows) throws IOException,
864864 assertEquals (allRows , resultString );
865865 expectedRowsWithHeader = TABLE_AND_HEADER_RECORD_COUNT ;
866866 }
867- assertRowCount (format , resultString , expectedRowsWithHeader );
867+ assertRowCount (CSVFormat . DEFAULT , resultString , expectedRowsWithHeader );
868868 }
869869
870870 @ ParameterizedTest
871- @ ValueSource (longs = { -1 , 0 , 3 , 4 , Integer .MAX_VALUE })
871+ @ ValueSource (longs = { -1 , 0 , 3 , 4 , Long .MAX_VALUE })
872872 public void testJdbcPrinterWithResultSetHeader (final long maxRows ) throws IOException , ClassNotFoundException , SQLException {
873873 final StringWriter sw = new StringWriter ();
874874 try (Connection connection = getH2Connection ()) {
@@ -887,13 +887,13 @@ public void testJdbcPrinterWithResultSetHeader(final long maxRows) throws IOExce
887887 assertEquals (TABLE_RECORD_COUNT * 2 , printer .getRecordCount ());
888888 assertNotEquals ("ID,NAME" + RECORD_SEPARATOR + "1,r1" + RECORD_SEPARATOR + "2,r2" + RECORD_SEPARATOR , sw .toString ());
889889 }
890- assertRowCount (format , sw .toString (), TABLE_AND_HEADER_RECORD_COUNT + TABLE_RECORD_COUNT );
890+ assertRowCount (CSVFormat . DEFAULT , sw .toString (), TABLE_AND_HEADER_RECORD_COUNT + TABLE_RECORD_COUNT );
891891 }
892892 }
893893 }
894894
895895 @ ParameterizedTest
896- @ ValueSource (longs = { -1 , 0 , 3 , 4 , Integer .MAX_VALUE })
896+ @ ValueSource (longs = { -1 , 0 , 3 , 4 , Long .MAX_VALUE })
897897 public void testJdbcPrinterWithResultSetMetaData (final long maxRows ) throws IOException , ClassNotFoundException , SQLException {
898898 final StringWriter sw = new StringWriter ();
899899 try (Connection connection = getH2Connection ()) {
@@ -1509,7 +1509,7 @@ public void testPrintCSVRecord() throws IOException {
15091509 }
15101510
15111511 @ ParameterizedTest
1512- @ ValueSource (longs = { -1 , 0 , 3 , 4 , Integer .MAX_VALUE })
1512+ @ ValueSource (longs = { -1 , 0 , 3 , 4 , Long .MAX_VALUE })
15131513 public void testPrintCSVRecords (final long maxRows ) throws IOException {
15141514 // @formatter:off
15151515 final String code = "a1,b1\n " + // 1)
0 commit comments