From ec7a9a32b993a01f8569a619015cfa9b5f256226 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 26 Jul 2016 21:01:28 +0100 Subject: [PATCH] Upgrade to AssertJ 2.5.0 Closes gh-6473 --- spring-boot-dependencies/pom.xml | 2 +- .../org/springframework/boot/test/json/JsonContentAssert.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index f3a065e742..79f7383bc4 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -48,7 +48,7 @@ 1.9.40 1.3.0 1.8.9 - 2.4.1 + 2.5.0 3.9.3 2.1.4 2.3.1 diff --git a/spring-boot-test/src/main/java/org/springframework/boot/test/json/JsonContentAssert.java b/spring-boot-test/src/main/java/org/springframework/boot/test/json/JsonContentAssert.java index 70aa273ca5..a91f5fdb7d 100644 --- a/spring-boot-test/src/main/java/org/springframework/boot/test/json/JsonContentAssert.java +++ b/spring-boot-test/src/main/java/org/springframework/boot/test/json/JsonContentAssert.java @@ -30,6 +30,7 @@ import org.assertj.core.api.AbstractMapAssert; import org.assertj.core.api.AbstractObjectAssert; import org.assertj.core.api.Assert; import org.assertj.core.api.Assertions; +import org.assertj.core.api.ObjectAssert; import org.skyscreamer.jsonassert.JSONCompare; import org.skyscreamer.jsonassert.JSONCompareMode; import org.skyscreamer.jsonassert.JSONCompareResult; @@ -935,7 +936,7 @@ public class JsonContentAssert extends AbstractAssert extractingJsonPathArrayValue( + public AbstractListAssert> extractingJsonPathArrayValue( CharSequence expression, Object... args) { return Assertions.assertThat( extractingJsonPathValue(expression, args, List.class, "an array"));