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


##########
nessie/src/test/java/org/apache/iceberg/nessie/TestMultipleClients.java:
##########
@@ -76,9 +76,11 @@ public void testListNamespaces() throws 
NessieConflictException, NessieNotFoundE
     assertThat(catalog.listNamespaces()).isEmpty();
     assertThat(anotherCatalog.listNamespaces()).isEmpty();
 
-    // listing a non-existent namespace should return empty
-    assertThat(catalog.listNamespaces(Namespace.of("db1"))).isEmpty();
-    assertThat(anotherCatalog.listNamespaces(Namespace.of("db1"))).isEmpty();
+    // listing a non-existent namespace should throw an NoSuchNamespaceExists 
exception
+    assertThatThrownBy(() -> catalog.listNamespaces(Namespace.of("db1")))
+        .isInstanceOf(NoSuchNamespaceException.class);

Review Comment:
   .hasMessage() check should be here and further below



-- 
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-unsubscr...@iceberg.apache.org

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


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

Reply via email to