Fotoapparat icon indicating copy to clipboard operation
Fotoapparat copied to clipboard

Mocking Fotoapparat

Open jeduden opened this issue 4 years ago • 0 comments

What are you trying to achieve or the steps to reproduce?

I am trying to mock Fotoapparat with Mockito. Since Fotoapparat is final mockito has issues mocking this class in android instrumentation tests. There are some solutions but they are tricky to setup + have drawbacks. For example mocking of final classes is only supported from Android P or greater).

What did you expect?

It would be great to make fotoapparat open. (or let it implement an interface)

Would you accept a PR with a (non-breaking) change like this ?

jeduden avatar Nov 21 '19 07:11 jeduden