nastra commented on code in PR #8945:
URL: https://github.com/apache/iceberg/pull/8945#discussion_r1375969223


##########
flink/v1.15/flink/src/test/java/org/apache/iceberg/flink/TestIcebergConnector.java:
##########
@@ -261,11 +261,11 @@ public void 
testCatalogDatabaseConflictWithFlinkDatabase() {
     try {
       testCreateConnectorTable();
       // Ensure that the table was created under the specific database.
-      AssertHelpers.assertThrows(
-          "Table should already exists",
-          org.apache.flink.table.api.TableException.class,
-          "Could not execute CreateTable in path",
-          () -> sql("CREATE TABLE `default_catalog`.`%s`.`%s`", 
databaseName(), TABLE_NAME));
+      Assertions.assertThatThrownBy(
+              () -> sql("CREATE TABLE `default_catalog`.`%s`.`%s`", 
databaseName(), TABLE_NAME))
+          .as("Table should already exists")

Review Comment:
   ```suggestion
             .as("Table should already exist")
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to