@@ -84,7 +84,7 @@ void noPredicate() {
8484 @ Test
8585 void negativeMaxLines () {
8686 final CsvReader <CsvRecord > csv = CsvReader .builder ().ofCsvRecord ("A\n B" );
87- assertThatThrownBy (() -> csv .skipLines (line -> true , -1 ))
87+ assertThatThrownBy (() -> csv .skipLines (_ -> true , -1 ))
8888 .isInstanceOf (IllegalArgumentException .class )
8989 .hasMessage ("maxLines must be non-negative" );
9090 }
@@ -105,15 +105,15 @@ void zeroMaxLines() {
105105 @ Test
106106 void reachedMaxLines () {
107107 final CsvReader <CsvRecord > csv = CsvReader .builder ().ofCsvRecord ("A\n B" );
108- assertThatThrownBy (() -> csv .skipLines (line -> false , 1 ))
108+ assertThatThrownBy (() -> csv .skipLines (_ -> false , 1 ))
109109 .isInstanceOf (CsvParseException .class )
110110 .hasMessage ("No matching line found within the maximum limit of 1 lines." );
111111 }
112112
113113 @ Test
114114 void noMatch () {
115115 final CsvReader <CsvRecord > csv = CsvReader .builder ().ofCsvRecord ("A\n B" );
116- assertThatThrownBy (() -> csv .skipLines (line -> false , 10 ))
116+ assertThatThrownBy (() -> csv .skipLines (_ -> false , 10 ))
117117 .isInstanceOf (CsvParseException .class )
118118 .hasMessage ("No matching line found. Skipped 2 line(s) before reaching end of data." );
119119 }
@@ -140,7 +140,7 @@ void skipLinesWithPredicate(final String data) {
140140 @ Test
141141 void predicateIoException () {
142142 final CsvReader <CsvRecord > csv = CsvReader .builder ().ofCsvRecord (new UnreadableReader ());
143- assertThatThrownBy (() -> csv .skipLines (line -> true , 1 ))
143+ assertThatThrownBy (() -> csv .skipLines (_ -> true , 1 ))
144144 .isInstanceOf (UncheckedIOException .class )
145145 .hasMessage ("java.io.IOException: Cannot read" );
146146 }
0 commit comments