Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-9136][tests] Remove StreamingProgramTestBase #5817

Closed
wants to merge 1 commit into from

Conversation

zentol
Copy link
Contributor

@zentol zentol commented Apr 4, 2018

Builds on #5816.

What is the purpose of the change

This PR removes the StreamingProgramTestBase class.

The class discourages the re-use of cluster resources as every test must be setup in a new class. Additionally, it appears to mimic jUnits @Before/@After life-cycle, but actually doesn't as the postSubmit method is not called not called if testPogram fails with an exception. This can lead to resource leaks, like for example in the ContinuousFileProcessingITCase.

Existing usages were ported to the AbstractTestBase.

If a tests was using preSubmit to setup data and postSubmit to verify the result, then the methods were merged into a single method.

Otherwise, preSubmit implementations were annotated with @Before, postSubmit implementations with @After, and testProgram implementations with @Test.

Additionally the visibility of these methods was set to public.

@zentol zentol force-pushed the 9136 branch 5 times, most recently from 12f8b80 to ceeaa65 Compare April 12, 2018 07:48
@aljoscha
Copy link
Contributor

aljoscha commented May 2, 2018

Looks very good to merge! 👍

@asfgit asfgit closed this in de10b40 May 2, 2018
@zentol zentol deleted the 9136 branch May 2, 2018 19:14
sampathBhat pushed a commit to sampathBhat/flink that referenced this pull request Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants