These occurrences need to be replaced with asInstanceOf(InstanceOfAssertFactories.list(...)) to comply with the latest AssertJ standards.
Expected Behavior
After replacing the asList() method with asInstanceOf(InstanceOfAssertFactories.list(...)), the unit tests should pass without any regression or failures.
Acceptance Criteria
[x] AC1: Replace the deprecated asList() method at Line 90 and Line 131 with asInstanceOf(InstanceOfAssertFactories.list(...)).
Component
JKube
Task description
Description
The
PodTemplateHandlerTest
class currently uses the deprecated AssertJasList()
method in the following lines:https://github.com/eclipse-jkube/jkube/blob/1aeb58d8337beefa89b1e77c30e6a3d85633e152/jkube-kit/enricher/api/src/test/java/org/eclipse/jkube/kit/enricher/handler/PodTemplateHandlerTest.java#L89-L90 https://github.com/eclipse-jkube/jkube/blob/1aeb58d8337beefa89b1e77c30e6a3d85633e152/jkube-kit/enricher/api/src/test/java/org/eclipse/jkube/kit/enricher/handler/PodTemplateHandlerTest.java#L131
These occurrences need to be replaced with
asInstanceOf(InstanceOfAssertFactories.list(...))
to comply with the latest AssertJ standards.Expected Behavior
After replacing the
asList()
method withasInstanceOf(InstanceOfAssertFactories.list(...))
, the unit tests should pass without any regression or failures.Acceptance Criteria
asList()
method at Line 90 and Line 131 withasInstanceOf(InstanceOfAssertFactories.list(...))
.