Closed
Description
Describe the bug
- assertj core version: 3.25.0
Commit 498ee5b introduced a regression in AbstractMapAssert.containsExactly
.
Specifically, it is not always safe to put null
into a Map
.
Test case reproducing the bug
The following now fails with a NullPointerException
.
@Test
void assertJBug() {
Properties properties = new Properties();
properties.setProperty("k1", "v1");
properties.setProperty("k2", "v2");
assertThat(properties).containsExactly(entry("k1", "v1"), entry("k2", "v2"));
}
Metadata
Metadata
Assignees
Labels
No labels