Upgrade to AssertJ 3.25.1, use AssertJ BOM

Closes gh-31945
This commit is contained in:
Stefano Cordio
2024-01-04 09:25:31 +01:00
committed by Sam Brannen
parent 19a87e968e
commit be9ee9112c
3 changed files with 3 additions and 6 deletions

View File

@@ -146,9 +146,7 @@ class YamlProcessorTests {
void standardTypesSupportedByDefault() {
setYaml("value: !!set\n ? first\n ? second");
this.processor.process((properties, map) -> {
// Assert on Properties as a Map due to bug in AssertJ 3.25.0
Map<Object, Object> propsAsMap = new LinkedHashMap<>(properties);
assertThat(propsAsMap).containsExactly(entry("value[0]", "first"), entry("value[1]", "second"));
assertThat(properties).containsExactly(entry("value[0]", "first"), entry("value[1]", "second"));
assertThat(map.get("value")).asInstanceOf(InstanceOfAssertFactories.type(Set.class))
.satisfies(set -> assertThat(set).containsExactly("first", "second"));
});