[FLINK-32695] [test-utils] Add flink-test-utils-source module for Source V2 tests. #26910
+1,048
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
Added a minimal, test-only utility module for FLIP-27 (Source V2) tests to reduce boilerplate when using Source V2 in Test cases. This is being done as a part of FLINK-32695 to migrate all the legacy test sources.
While migrating legacy SourceFunction–based tests to FLIP-27 (Source V2), a recurring pattern was noticed: many tests only need a mostly no-op scaffold (e.g., a source/enumerator that does nothing) or just one component—most often the SourceReader—to exercise a specific behavior. Hence this change is being made so that those patterns can be captured and test authors can plug in a tiny override (reader/enumerator/serializer) without re-implementing boilerplate.
Module path: flink-test-utils-parent/flink-test-utils-source
Brief change log
Verifying this change
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: noDocumentation