[
https://issues.apache.org/jira/browse/FLINK-22287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17322086#comment-17322086
]
Svend Vanderveken commented on FLINK-22287:
-------------------------------------------
Thanks for the feed-back Dawid.
I see my mistake now, sorry for the unnecessary ticket. I'm coding with Junit 5
on my current project, which as far as I understand does not handle resources
as Junit `ClassRule` does. I resolved it on my project by adding explicit calls
to mini-cluster's `before()` and `after()` and figured it was an omission in
the doc. Sorry again :)
> Java documentation of mini cluster should mention usage of before() and
> after()
> -------------------------------------------------------------------------------
>
> Key: FLINK-22287
> URL: https://issues.apache.org/jira/browse/FLINK-22287
> Project: Flink
> Issue Type: Improvement
> Components: Documentation
> Reporter: Svend Vanderveken
> Priority: Minor
> Labels: pull-request-available
>
> The java code examples [for Mini cluster usage in unit tests in the current
> documentation|https://ci.apache.org/projects/flink/flink-docs-release-1.12/dev/stream/testing.html#junit-rule-miniclusterwithclientresource]
> do not mention that the user should call {{before()}} and {{after()}}
> methods on the mini cluster instance.
> I believe this is a mistake since omitting those calls would make, as far as
> a I understand, the creation of the mini cluster ignored.
> The scala code samples seem correct.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)