Bug 1314 - Testability problem: CLEventList is final
Summary: Testability problem: CLEventList is final
Alias: None
Product: Jocl
Classification: JogAmp
Component: opencl (show other bugs)
Version: tbd
Hardware: All all
: P4 normal
Assignee: Wade Walker
Depends on:
Reported: 2016-06-27 12:10 CEST by Emily
Modified: 2019-03-29 13:58 CET (History)
3 users (show)

See Also:
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Emily 2016-06-27 12:10:57 CEST
Version: Latest from JCenter (2.3.2) 

The presence of the final modifier on CLEventList makes it impossible to mock/stub CLEventList for unit testing. 

I would like if either the final modifier could be removed OR for CLEventList to be split into interface and concrete implementation so that the interface can be mocked while keeping the concrete implementation final.

Thank you for your hard work and effort put into this.