eclipse-jkube / jkube

Build and Deploy java applications on Kubernetes
https://www.eclipse.dev/jkube/
Eclipse Public License 2.0
774 stars 522 forks source link

Issue: Replace Deprecated `asList()` Method in ProjectEnricherTest #3520

Closed ShivamChavan01 closed 2 weeks ago

ShivamChavan01 commented 2 weeks ago

Component

JKube Kit

Task description

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.

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-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

ShivamChavan01 commented 2 weeks ago

assign me this @rohanKanojia