imaffe commented on code in PR #19099: URL: https://github.com/apache/flink/pull/19099#discussion_r898626758
########## flink-connectors/flink-connector-pulsar/src/test/java/org/apache/flink/connector/pulsar/testutils/PulsarTestContext.java: ########## @@ -19,44 +19,61 @@ package org.apache.flink.connector.pulsar.testutils; import org.apache.flink.connector.pulsar.testutils.runtime.PulsarRuntimeOperator; -import org.apache.flink.connector.testframe.external.source.DataStreamSourceExternalContext; +import org.apache.flink.connector.testframe.external.ExternalContext; + +import org.apache.pulsar.client.api.Schema; import java.net.URL; -import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; import java.util.List; +import java.util.Set; + +import static org.apache.flink.connector.pulsar.source.enumerator.topic.TopicNameUtils.topicName; + +/** + * The implementation for Flink connector test tools. Providing the common test case writing + * constraint for both source, sink and table API. + */ +public abstract class PulsarTestContext<T> implements ExternalContext { Review Comment: How will change to `ExternalContext` affect the tests for Table API ? ########## flink-connectors/flink-connector-pulsar/archunit-violations/f4d91193-72ba-4ce4-ad83-98f780dce581: ########## @@ -1,3 +1,9 @@ +org.apache.flink.connector.pulsar.sink.PulsarSinkITCase does not satisfy: only one of the following predicates match:\ +* reside in a package 'org.apache.flink.runtime.*' and contain any fields that are static, final, and of type InternalMiniClusterExtension and annotated with @RegisterExtension\ Review Comment: Is it possible we can fix this arch violation ? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org