Not able to get the code coverage for final classes from jacoco when using GWTMockito

20 views
Skip to first unread message

kishorep...@gmail.com

unread,
Dec 16, 2014, 9:23:51 AM12/16/14
to jac...@googlegroups.com
Hi,
I had written some junit test cases for final classes using GWTMockito.But when i try to get the code coverage for those final classes,it's showing only 0.0%.Can i know is this an open issue or is there any way to get the code coverage for these final classes.

Thanks in advance .

Thanks & Regards,
kishore palakollu.

Marc Hoffmann

unread,
Dec 17, 2014, 10:31:56 AM12/17/14
to jac...@googlegroups.com
Hi Kishore,

Mockito does not work well will JaCoCo when original classes needs to be
replaced, e.g. by mocking final classes.

A possible workaround is to use JaCoCo offline instrumentation.

Best regards,
-marc
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages