Skip to content

Commit

Permalink
fix: replace AssertJ's deprecated asList() DSL method in QuarkusGener…
Browse files Browse the repository at this point in the history
…atorExposedPortsTest (3350)
  • Loading branch information
Flowers2Algernon authored Aug 30, 2024
1 parent 422a754 commit 121c427
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.List;
import java.util.Properties;

import org.assertj.core.api.InstanceOfAssertFactories;
import org.eclipse.jkube.generator.api.GeneratorContext;
import org.eclipse.jkube.kit.common.JavaProject;
import org.eclipse.jkube.kit.common.KitLogger;
Expand Down Expand Up @@ -69,7 +70,7 @@ void withDefaults_shouldAddDefaults() throws IOException {
assertThat(result).singleElement()
.extracting(ImageConfiguration::getBuildConfiguration)
.extracting(BuildConfiguration::getPorts)
.asList()
.asInstanceOf(InstanceOfAssertFactories.list(String.class))
.containsExactly("8080", "8778", "9779");
}

Expand All @@ -83,7 +84,7 @@ void withDefaultsInNative_shouldAddDefaultsForNative() throws IOException {
assertThat(result).singleElement()
.extracting(ImageConfiguration::getBuildConfiguration)
.extracting(BuildConfiguration::getPorts)
.asList()
.asInstanceOf(InstanceOfAssertFactories.list(String.class))
.containsExactly("8080");
}

Expand All @@ -101,7 +102,7 @@ void withApplicationProperties_shouldAddConfigured() throws IOException {
assertThat(result).singleElement()
.extracting(ImageConfiguration::getBuildConfiguration)
.extracting(BuildConfiguration::getPorts)
.asList()
.asInstanceOf(InstanceOfAssertFactories.list(String.class))
.containsExactly("1337", "8778", "9779");
}

Expand All @@ -120,7 +121,7 @@ void withApplicationPropertiesAndProfile_shouldAddConfiguredProfile() throws IOE
assertThat(result).singleElement()
.extracting(ImageConfiguration::getBuildConfiguration)
.extracting(BuildConfiguration::getPorts)
.asList()
.asInstanceOf(InstanceOfAssertFactories.list(String.class))
.containsExactly("31337", "8778", "9779");
}

Expand Down

0 comments on commit 121c427

Please sign in to comment.