You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Hung <un...@gmail.com> on 2019/11/11 12:44:05 UTC
Document an example pattern that makes sources and sinks pluggable
in the production code for testing
Hi guys,
I found the testing part mentioned
make sources and sinks pluggable in your production code and inject special
test sources and test sinks in your tests.
https://ci.apache.org/projects/flink/flink-docs-stable/dev/stream/testing.html#testing-flink-jobs
I think it would be useful to have a documented example as the section
*testing stateful operato*r does, which demonstrates by WindowOperatorTest
https://ci.apache.org/projects/flink/flink-docs-stable/dev/stream/testing.html#unit-testing-stateful-or-timely-udfs--custom-operators
or, is there perhaps already a test that plugs sources and sinks?
--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
Re: Document an example pattern that makes sources and sinks
pluggable in the production code for testing
Posted by Piotr Nowojski <pi...@ververica.com>.
Hi,
Doesn’t the included example `ExampleIntegrationTest` demonstrate the idea of
> inject special test sources and test sinks in your tests.
?
Piotrek
> On 11 Nov 2019, at 13:44, Hung <un...@gmail.com> wrote:
>
> Hi guys,
>
> I found the testing part mentioned
>
> make sources and sinks pluggable in your production code and inject special
> test sources and test sinks in your tests.
> https://ci.apache.org/projects/flink/flink-docs-stable/dev/stream/testing.html#testing-flink-jobs
>
> I think it would be useful to have a documented example as the section
> *testing stateful operato*r does, which demonstrates by WindowOperatorTest
> https://ci.apache.org/projects/flink/flink-docs-stable/dev/stream/testing.html#unit-testing-stateful-or-timely-udfs--custom-operators
>
> or, is there perhaps already a test that plugs sources and sinks?
>
>
>
>
>
> --
> Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/