-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
removed deprected method asList()
#3510
removed deprected method asList()
#3510
Conversation
Eclipse JKube CI ReportStarted new GH workflow run for #3510 (2024-11-05T05:17:19Z) ⚙️ JKube E2E Tests (11677870931)
|
Quality Gate passedIssues Measures |
@@ -115,7 +122,9 @@ void inKubernetes_shouldNotCreateRoute() { | |||
// When | |||
new RouteEnricher(context).create(PlatformMode.kubernetes, klb); | |||
// Then | |||
assertThat(klb.build()).extracting(KubernetesList::getItems).asList().singleElement() | |||
assertThat(klb.build()).extracting(KubernetesList::getItems) | |||
.asInstanceOf(InstanceOfAssertFactories.list(ArrayList.class)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.asInstanceOf(InstanceOfAssertFactories.list(ArrayList.class)) | |
.asInstanceOf(InstanceOfAssertFactories.list(HasMetadata.class)) |
@@ -77,7 +82,9 @@ void create_withServiceWithNoWebPort_shouldNotCreateRoute() { | |||
// When | |||
new RouteEnricher(context).create(PlatformMode.openshift, klb); | |||
// Then | |||
assertThat(klb.build()).extracting(KubernetesList::getItems).asList().singleElement() | |||
assertThat(klb.build()).extracting(KubernetesList::getItems) | |||
.asInstanceOf(InstanceOfAssertFactories.list(ArrayList.class)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assertThat(klb.build()).extracting(KubernetesList::getItems).asList().singleElement() | ||
.isInstanceOf(Service.class); | ||
assertThat(klb.build()).extracting(KubernetesList::getItems) | ||
.asInstanceOf(InstanceOfAssertFactories.list(ArrayList.class)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -54,7 +55,9 @@ void create_withNoServices_shouldNotCreateRoute() { | |||
// When | |||
new RouteEnricher(context).create(PlatformMode.openshift, klb); | |||
// Then | |||
assertThat(klb.build()).extracting(KubernetesList::getItems).asList().isEmpty(); | |||
assertThat(klb.build()).extracting(KubernetesList::getItems) | |||
.asInstanceOf(InstanceOfAssertFactories.list(ArrayList.class)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
This pull request addresses Issue #3509, which involves replacing the deprecated
asList()
method in theRouteEnricherBehavioralTest
class withasInstanceOf(InstanceOfAssertFactories.list(type.class))
. This update is necessary to ensure compatibility with the latest AssertJ library and to maintain code quality.Fixes #3509
Type of change
test, version modification, documentation, etc.)
Checklist