You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Zhijiang (Jira)" <ji...@apache.org> on 2020/03/18 12:28:00 UTC

[jira] [Created] (FLINK-16653) Introduce ResultPartitionWriterTestBase for simplifying tests

Zhijiang created FLINK-16653:
--------------------------------

             Summary: Introduce ResultPartitionWriterTestBase for simplifying tests 
                 Key: FLINK-16653
                 URL: https://issues.apache.org/jira/browse/FLINK-16653
             Project: Flink
          Issue Type: Bug
          Components: Runtime / Network, Tests
            Reporter: Zhijiang
            Assignee: Zhijiang


At the moment there are at-least four implementations of `ResultPartitionWriter` interface used in unit tests. And there are about ten methods to be implemented for `ResultPartitionWriter` and most of them are dummy in tests.

When we want to extend the methods for `ResultPartitionWriter`, the above four dummy implementations in tests have to be adjusted as well, to waste a bit efforts.

Therefore abstract ResultPartitionWriterTestBase is proposed to implement the basic dummy methods for `ResultPartitionWriter`, and the previous four instances can all extend it to only implement one or two methods based on specific requirements in tests. And we will probably only need to adjust the ResultPartitionWriterTestBase when extending the `ResultPartitionWriter` interface.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)