[
https://issues.apache.org/jira/browse/FLINK-16300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zhu Zhu closed FLINK-16300.
---------------------------
Resolution: Fixed
implemented via 007b8755462e2237ac39a3218ccb9d1377b76180
> Rework 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
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.11.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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
> rework the utils with testing classes.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)