From 6890d4c6010b90d0b8dd1e5bcc9490904d7c7e2e Mon Sep 17 00:00:00 2001 From: Lukas Krecan Date: Sun, 31 Dec 2023 22:15:51 +0100 Subject: [PATCH] Update AssertJ --- .../jsonunit/assertj/JsonListAssert.java | 3 +- .../jsonunit/assertj/JsonMapAssert.java | 28 ++++++++++--------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/json-unit-assertj/src/main/java/net/javacrumbs/jsonunit/assertj/JsonListAssert.java b/json-unit-assertj/src/main/java/net/javacrumbs/jsonunit/assertj/JsonListAssert.java index 61ab6661..8f67657a 100644 --- a/json-unit-assertj/src/main/java/net/javacrumbs/jsonunit/assertj/JsonListAssert.java +++ b/json-unit-assertj/src/main/java/net/javacrumbs/jsonunit/assertj/JsonListAssert.java @@ -25,6 +25,7 @@ import org.assertj.core.api.AbstractAssert; import org.assertj.core.api.FactoryBasedNavigableListAssert; import org.assertj.core.api.InstanceOfAssertFactory; +import org.assertj.core.description.Description; import org.assertj.core.error.BasicErrorMessageFactory; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -44,7 +45,7 @@ public class JsonListAssert extends FactoryBasedNavigableListAssert, String, Object> { private final Configuration configuration; private final Path path; @@ -281,7 +283,7 @@ private UnsupportedOperationException unsupportedOperation() { @NotNull private JsonMapAssert compare(@Nullable Object other, @NotNull Configuration configuration) { - describedAs(null); + describedAs((Description) null); Diff diff = Diff.create(other, actual, "fullJson", path, configuration); diff.failIfDifferent(); return this;