KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Protocol buffer classes are marked final , presumably for efficiency; however, this makes them quite difficult to test with -- Mockito can't mock/spy on final classes. I've tried using PowerMockito with no success: I get a ClassFormatError when preparing the final class for the test. My solution up until now is to create mockable adapter interfaces, but I'm hoping there's a less laborious approach.
Tags (comma-separated)
Save Edits
Cancel