Bug 1314 - Testability problem: CLEventList is final
Summary: Testability problem: CLEventList is final
Status: UNCONFIRMED
Alias: None
Product: Jocl
Classification: JogAmp
Component: opencl (show other bugs)
Version: 2.4.0
Hardware: All all
: P4 normal
Assignee: Wade Walker
URL:
Depends on:
Blocks:
 
Reported: 2016-06-27 12:10 CEST by Emily
Modified: 2016-07-06 09:11 CEST (History)
3 users (show)

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments

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.