You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Zhu Zhu (Jira)" <ji...@apache.org> on 2020/02/27 07:14:00 UTC

[jira] [Created] (FLINK-16300) Reworks SchedulerTestUtils with testing classes to replace mockito usages

Zhu Zhu created FLINK-16300:
-------------------------------

             Summary: Reworks SchedulerTestUtils with testing classes to replace mockito usages
                 Key: FLINK-16300
                 URL: https://issues.apache.org/jira/browse/FLINK-16300
             Project: Flink
          Issue Type: Sub-task
          Components: Runtime / Coordination, Tests
    Affects Versions: 1.11.0
            Reporter: Zhu Zhu
            Assignee: Zhu Zhu
             Fix For: 1.11.0


Mockito is used in SchedulerTestUtils to mock ExecutionVertex and Execution for testing. It fails to mock every getter so that other tests use it may encounter NPE issues, e.g. ExecutionVertex#getID().
Mockito is also discouraged to be used in Flink tests. So I'd propose to reworks the utils with testing classes.



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