From d15061348ac89d025e2195b103e7fcb7282ea0b0 Mon Sep 17 00:00:00 2001 From: Raushan Kumar Date: Wed, 24 Jul 2024 15:39:54 +0530 Subject: [PATCH] fix: replace AssertJ's deprecated asList() DSL method in JKubeConfigurationTest (3255) Signed-off-by: Raushan --- .../org/eclipse/jkube/kit/common/JKubeConfigurationTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jkube-kit/common/src/test/java/org/eclipse/jkube/kit/common/JKubeConfigurationTest.java b/jkube-kit/common/src/test/java/org/eclipse/jkube/kit/common/JKubeConfigurationTest.java index f2ccd6fb35..835f73da07 100644 --- a/jkube-kit/common/src/test/java/org/eclipse/jkube/kit/common/JKubeConfigurationTest.java +++ b/jkube-kit/common/src/test/java/org/eclipse/jkube/kit/common/JKubeConfigurationTest.java @@ -17,6 +17,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.json.JsonMapper; +import org.assertj.core.api.InstanceOfAssertFactories; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.DisabledOnOs; import org.junit.jupiter.api.condition.OS; @@ -136,6 +137,7 @@ void rawDeserialization() throws IOException { .hasFieldOrPropertyWithValue("buildArgs.http_proxy", "127.0.0.1:8001") .hasFieldOrPropertyWithValue("pullRegistryConfig.registry", "the-pull-registry") .hasFieldOrPropertyWithValue("pushRegistryConfig.registry", "the-push-registry") - .extracting(JKubeConfiguration::getReactorProjects).asList().isEmpty(); + .extracting(JKubeConfiguration::getReactorProjects).asInstanceOf(InstanceOfAssertFactories.list(JavaProject.class)) + .isEmpty(); } }