Skip to content

Commit 823d4fe

Browse files
committed
Remove exception catch in prepared_stmt_metadata_update_loopholes_test
Since incorporating "JAVA-3057 Allow decoding a UDT that has more fields than expected" the asuumptions of removed check are no longer valid.
1 parent c1c1063 commit 823d4fe

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

integration-tests/src/test/java/com/datastax/oss/driver/core/cql/BoundStatementCcmIT.java

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -522,25 +522,15 @@ public void prepared_stmt_metadata_update_loopholes_test(
522522
}
523523

524524
row = session.execute(stmtUDTTableWCS.bind(1)).one();
525-
try {
526-
assertThat(row.getUdtValue(1).size()).isEqualTo(expectedColumnCount);
527-
// if isPreparedStatementInvalidationBroken is true it should throw exception
528-
assertThat(isPreparedStatementInvalidationBroken).isFalse();
529-
} catch (java.lang.IllegalArgumentException e) {
530-
assertThat(isPreparedStatementInvalidationBroken).isTrue();
531-
}
525+
526+
assertThat(row.getUdtValue(1).size()).isEqualTo(expectedColumnCount);
532527
assertThat(row.getColumnDefinitions().size()).isEqualTo(2);
533528
assertThat(getUDTColumnCount(row.getColumnDefinitions().get(1)))
534529
.isEqualTo(expectedColumnCount);
535530

536531
row = session.execute(stmtUDTTableTS.bind(1)).one();
537-
try {
538-
assertThat(row.getUdtValue(1).size()).isEqualTo(expectedColumnCount);
539-
// if isPreparedStatementInvalidationBroken is true it should throw exception
540-
assertThat(isPreparedStatementInvalidationBroken).isFalse();
541-
} catch (java.lang.IllegalArgumentException e) {
542-
assertThat(isPreparedStatementInvalidationBroken).isTrue();
543-
}
532+
533+
assertThat(row.getUdtValue(1).size()).isEqualTo(expectedColumnCount);
544534
assertThat(row.getColumnDefinitions().size()).isEqualTo(2);
545535
assertThat(getUDTColumnCount(row.getColumnDefinitions().get(1)))
546536
.isEqualTo(expectedColumnCount);

0 commit comments

Comments
 (0)