Skip to content

Commit 53d0b02

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,8 @@ 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("Index 1 out of bounds for length 1")
1539+
.hasMessageContaining("maximum number of columns per record (1) was exceeded")
15391540
.hasMessageContaining(
15401541
"Please increase the value of the connector.csv.maxColumns setting")
15411542
.hasRootCauseInstanceOf(ArrayIndexOutOfBoundsException.class));

0 commit comments

Comments
 (0)