diff --git a/paimon-core/src/test/java/org/apache/paimon/rest/RESTObjectMapperTest.java b/paimon-core/src/test/java/org/apache/paimon/rest/RESTObjectMapperTest.java index 0e5a71be39c0..1cf382a9f438 100644 --- a/paimon-core/src/test/java/org/apache/paimon/rest/RESTObjectMapperTest.java +++ b/paimon-core/src/test/java/org/apache/paimon/rest/RESTObjectMapperTest.java @@ -103,7 +103,7 @@ public void listDatabaseResponseParseTest() throws Exception { ListDatabasesResponse parseData = mapper.readValue(responseStr, ListDatabasesResponse.class); assertEquals(response.getDatabases().size(), parseData.getDatabases().size()); - assertEquals(name, parseData.getDatabases().get(0).getName()); + assertEquals(name, parseData.getDatabases().get(0)); } @Test