Missing Eclipse instructions EclEmma

I am using the Eclipse-STS + EclEmma plugin to see the coverage of my code. In all of my abstract usage classes (only with static methods), I see 3 Instructions Counter report missing in the class definition line:

enter image description here

There is no marker to the left of the red line, so I don’t know exactly what these instructions are. Maybe some designers? What can I do to cover them?

+4
source share
1 answer

One way to find 100% coverage is to write a test method as follows:

 @Test public void coverage(){ KeyEscaper a = new KeyEscaper() { }; } 

Once the problem only applies to utils classes with all static methods, it is not a problem to create them anonymously in this way.

+2
source

All Articles