slinkydeveloper commented on a change in pull request #19039:
URL: https://github.com/apache/flink/pull/19039#discussion_r825893296
##########
File path:
flink-table/flink-table-common/src/test/java/org/apache/flink/table/catalog/CatalogTest.java
##########
@@ -203,11 +197,12 @@ public void testAlterDb() throws Exception {
CatalogDatabase newDb = createAnotherDb();
catalog.alterDatabase(db1, newDb, false);
- assertFalse(
- catalog.getDatabase(db1)
- .getProperties()
- .entrySet()
- .containsAll(db.getProperties().entrySet()));
+ assertThat(
+ catalog.getDatabase(db1)
+ .getProperties()
+ .entrySet()
+ .containsAll(db.getProperties().entrySet()))
+ .isFalse();
Review comment:
> but there isn't a "notContainsAllEntriesOf" version
There is `doesNotContain(Entry<? extends K, ? extends V>... entries)`:
```
assertThat(catalog.getDatabase(db1).getProperties())
.doesNotContain(db.getProperties().entrySet());
```
--
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]