You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "skytin1004 (via GitHub)" <gi...@apache.org> on 2023/07/06 07:58:39 UTC

[GitHub] [iceberg] skytin1004 commented on a diff in pull request #7996: Switch tests to Junit5 in Core,aws,deltalake,snowflake

skytin1004 commented on code in PR #7996:
URL: https://github.com/apache/iceberg/pull/7996#discussion_r1254078375


##########
core/src/test/java/org/apache/iceberg/TestCatalogUtil.java:
##########
@@ -142,7 +141,7 @@ public void loadCustomFileIO_hadoopConfigConstructor() {
     FileIO fileIO =
         CatalogUtil.loadFileIO(HadoopFileIO.class.getName(), Maps.newHashMap(), configuration);
     Assertions.assertThat(fileIO).isInstanceOf(HadoopFileIO.class);
-    Assert.assertEquals("val", ((HadoopFileIO) fileIO).conf().get("key"));
+    Assertions.assertThat(((HadoopFileIO) fileIO).conf().get("key")).isEqualTo("val");

Review Comment:
   I tried your suggestion, but I get a syntax error.  I reverted back to `Assertions.assertThat(((HadoopFileIO) fileIO).conf().get("key")).isEqualTo("val");.`



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org