I use EclEmma to analyze coverage.
My Java code includes a synchronized (MyClass.class) {} block.
EclEmma says this is only partially covered by the event, although I do have a unit test in which one thread is accessing and the other thread is blocked.
Is it possible to get full synchronization coverage with EclEmma?
Is there any way to annotate the code to tell EclEmma to give this line full coverage?
Regards Roger
java concurrency synchronized code-coverage emma
Roger CS Wernersson
source share