azagrebin commented on a change in pull request #11240: [FLINK-16190][e2e]
Migrate tests to FlinkResource
URL: https://github.com/apache/flink/pull/11240#discussion_r385795737
##########
File path:
flink-end-to-end-tests/flink-end-to-end-tests-common-kafka/src/test/java/org/apache/flink/tests/util/kafka/StreamingKafkaITCase.java
##########
@@ -68,20 +69,22 @@
public final KafkaResource kafka;
@Rule
- public final FlinkResource flink = FlinkResource.get();
+ public final FlinkResource flink =
FlinkResource.get(FlinkResourceSetup.builder().addConfiguration(getConfiguration()).build());
public StreamingKafkaITCase(final String kafkaExampleJarPattern, final
String kafkaVersion) {
this.kafkaExampleJar =
TestUtils.getResourceJar(kafkaExampleJarPattern);
this.kafka = KafkaResource.get(kafkaVersion);
}
- @Test
- public void testKafka() throws Exception {
+ private static Configuration getConfiguration() {
Review comment:
I would put it before the constructor for code style
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services