Skip to content

Commit 3be9b28

Browse files
author
Madhavan
committed
Assert ArrayIndexOutOfBoundsException generically for JDKs 8,11,17
1 parent 097f394 commit 3be9b28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connectors/csv/src/test/java/com/datastax/oss/dsbulk/connectors/csv/CSVConnectorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ void should_throw_IOE_when_max_columns_exceeded() throws Exception {
15351535
t ->
15361536
assertThat(t)
15371537
.hasCauseInstanceOf(IOException.class)
1538-
.hasMessageContaining("ArrayIndexOutOfBoundsException - 1")
1538+
.hasMessageContaining("maximum number of columns per record (1) was exceeded")
15391539
.hasMessageContaining(
15401540
"Please increase the value of the connector.csv.maxColumns setting")
15411541
.hasRootCauseInstanceOf(ArrayIndexOutOfBoundsException.class));

0 commit comments

Comments
 (0)