Repository navigation
[FLINK-25315][tests] add new extensions and utils to help the Junit5 … - #20145
yuchengxin wants to merge 2 commits into
Conversation
f6d4ea1 to
d98a5d9
Compare
Myasuka
left a comment
There was a problem hiding this comment.
Thanks for creating this PR! Please take a look at my comments.
I tried another test class PackagedProgramUtilsPipelineTest which both have parameterized tests and temp directory usage:
@ExtendWith(ParameterizedTestExtension.class)
public class PackagedProgramUtilsPipelineTest {
@Parameter
public TestParameter testParameter;
@TempDir
private java.nio.file.Path temporaryFolder;
@Parameters(name = "testParameter-{0}")
public static Collection<TestParameter> parameters() {
return Arrays.asList(
TestParameter.of(
DataSetTestProgram.class,
pipeline -> ((Plan) pipeline).getExecutionConfig()),
TestParameter.of(
DataStreamTestProgram.class,
pipeline -> ((StreamGraph) pipeline).getExecutionConfig()));
}… migration Co-authored-by: yuchengxin <[email protected]>"
…mell codes in custom junit5 extensions
|
@yuchengxin Thanks for the update! |
I hive modified the description of this PR |
|
@flinkbot run azure |
1 similar comment
|
@flinkbot run azure |
|
Thanks for the contributions from @yuchengxin and previous work done by @ruanhang1993 ! |
…5 migration Co-authored-by: Hang Ruan <[email protected]> This closes apache#20145.
…5 migration Co-authored-by: Hang Ruan <[email protected]> This closes apache#20145.
…5 migration Co-authored-by: Hang Ruan <[email protected]> This closes apache#20145.
…5 migration Co-authored-by: Hang Ruan <[email protected]> This closes apache#20145.
…migration
What is the purpose of the change
This pull request adds new extensions and utils to help the Junit5 migration.
Brief change log
ParameterizedTestExtensionand two annotations to help to migrate the Junit4 parameterized testTempDirUtilsto provide some common methods inorg.junit.rules.TemporaryFolderLongHashTableTestto Junit5 as an example to show how to use the useParameterizedTestExtensionPackagedProgramUtilsPipelineTestto Junit5 as an example to show how toTempDirUtilsVerifying this change
This change is already covered by existing tests.
Does this pull request potentially affect one of the following parts:
Documentation