Issue: Replace Deprecated asList() Method in ProjectEnricherTest
Description
The ProjectEnricherTest class currently uses the deprecated asList() method in AssertJ assertions. To maintain compatibility with future AssertJ versions and adhere to best practices, asList() should be replaced with the updated asInstanceOf(InstanceOfAssertFactories.list(type.class)) method.
The ProjectEnricherTest class should use the non-deprecated asInstanceOf(InstanceOfAssertFactories.list(type.class)) method. All tests within this class should run successfully without any warnings or errors related to deprecated methods.
Acceptance Criteria
[x] AC1: Replace all instances of asList() in ProjectEnricherTest with asInstanceOf(InstanceOfAssertFactories.list(type.class)).
Component
JKube Kit
Task description
Issue: Replace Deprecated
asList()
Method in ProjectEnricherTestDescription
The
ProjectEnricherTest
class currently uses the deprecatedasList()
method in AssertJ assertions. To maintain compatibility with future AssertJ versions and adhere to best practices,asList()
should be replaced with the updatedasInstanceOf(InstanceOfAssertFactories.list(type.class))
method.https://github.com/eclipse-jkube/jkube/blob/2221e72fe51862f1043895ac02235f3e28e33e7b/jkube-kit/enricher/generic/src/test/java/org/eclipse/jkube/enricher/generic/openshift/ProjectEnricherTest.java#L49-L50
Expected Behavior
The
ProjectEnricherTest
class should use the non-deprecatedasInstanceOf(InstanceOfAssertFactories.list(type.class))
method. All tests within this class should run successfully without any warnings or errors related to deprecated methods.Acceptance Criteria
asList()
inProjectEnricherTest
withasInstanceOf(InstanceOfAssertFactories.list(type.class))
.