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


##########
core/src/test/java/org/apache/iceberg/rest/TestRESTCatalog.java:
##########
@@ -3475,6 +3535,497 @@ public void 
testLoadTableWithMissingMetadataFile(@TempDir Path tempDir) {
         .hasMessageContaining("No in-memory file found for location: " + 
metadataFileLocation);
   }
 
+  @Test
+  public void testInvalidTableCacheParameters() {
+    RESTCatalog catalog = new RESTCatalog(config -> new 
RESTCatalogAdapter(backendCatalog));
+
+    assertThatThrownBy(

Review Comment:
   testing the cache directly should be done in a separate test class 
`TestRESTTableCache`. We don't really need to go through the rest catalog to 
test whether the cache can be initialized properly and whether certain 
conditions hold. That part should be in `TestRESTTableCache`



-- 
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