Skip to content

Commit

Permalink
Removed unused method in the KafkaTest (#10386)
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Patierno <[email protected]>
  • Loading branch information
ppatierno authored Jul 25, 2024
1 parent bcc4a1f commit 8ef366c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions api/src/test/java/io/strimzi/api/kafka/model/kafka/KafkaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/
package io.strimzi.api.kafka.model.kafka;

import io.fabric8.kubernetes.api.model.ObjectMeta;
import io.strimzi.api.kafka.model.AbstractCrdTest;
import io.strimzi.api.kafka.model.common.ConditionBuilder;
import io.strimzi.api.kafka.model.kafka.listener.GenericKafkaListener;
Expand Down Expand Up @@ -204,14 +203,4 @@ public void testListenersTypeAndName() {
assertThat(listeners.get(0).getName(), is("plain"));
assertThat(listeners.get(1).getName(), is("external"));
}

public void rt(String resourceName) {
Kafka model = TestUtils.fromYaml(resourceName + ".yaml", Kafka.class);
assertThat("The classpath resource " + resourceName + " does not exist", model, is(notNullValue()));

ObjectMeta metadata = model.getMetadata();
assertThat(metadata, is(notNullValue()));
assertDesiredResource(model, resourceName + ".out.yaml");
assertDesiredResource(TestUtils.fromYamlString(TestUtils.toYamlString(model), Kafka.class), resourceName + ".out.yaml");
}
}

0 comments on commit 8ef366c

Please sign in to comment.