Skip to content

Commit

Permalink
removed deprected method
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivamChavan01 committed Nov 3, 2024
1 parent 358ce5c commit 36b8d94
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
import java.util.Arrays;
import java.util.Properties;


import io.fabric8.kubernetes.api.model.ServicePort;
import org.assertj.core.api.InstanceOfAssertFactories;
import org.eclipse.jkube.kit.common.JavaProject;
import org.eclipse.jkube.kit.common.KitLogger;
import io.fabric8.kubernetes.api.model.ObjectMeta;
Expand Down Expand Up @@ -69,7 +72,7 @@ void defaultValuesAndEmptyOriginal() {
.isInstanceOf(Service.class)
.hasFieldOrPropertyWithValue("spec.type", null)
.extracting("spec.ports")
.asList()
.asInstanceOf(InstanceOfAssertFactories.list(ServicePort.class))
.extracting("name", "port", "protocol")
.containsOnly(new Tuple("http", 80, "TCP"));
}
Expand All @@ -88,7 +91,7 @@ void defaultValuesAndOriginalWithPorts() {
.isInstanceOf(Service.class)
.hasFieldOrPropertyWithValue("spec.type", null)
.extracting("spec.ports")
.asList()
.asInstanceOf(InstanceOfAssertFactories.list(ServicePort.class))
.extracting("name", "port", "protocol")
.containsOnly(new Tuple("menandmice-dns", 1337, "TCP"));
}
Expand Down

0 comments on commit 36b8d94

Please sign in to comment.