Skip to content

Commit

Permalink
fix: replace AssertJ's deprecated asList() DSL method in JKubeConfigu…
Browse files Browse the repository at this point in the history
…rationTest (3255)

Signed-off-by: Raushan <[email protected]>
  • Loading branch information
raushan606 authored Jul 24, 2024
1 parent 9a934ce commit d150613
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}
}

0 comments on commit d150613

Please sign in to comment.