EclEmma - full coverage of code in class header?

I have a class that starts with:

public class GeneralID implements WritableComparable<GeneralID>{ ... } 

One more thing:

 public class LineValuesMapper<KI, VI, KO, VO> extends Mapper<LongWritable, Text, Text, IntWritable>{ ... } 

All methods in these classes are covered. But not their headline. The title of both classes is yellow using EclEmma.

Covered instructions for these classes:

 Element Coverage Covered Instructions Total Instructions LineValuesMapper.java 97.3 % 145 149 GeneralID.java 99.3 % 566 570 

Is there anything I can do to completely cover the class header?

+6
java unit-testing emma
source share
1 answer

For classes that extend common superclasses or implement common interfaces, the compiler can add synthetic bridge methods . See the bytecode search results for a similar case.

Perhaps in your classes these bridge methods are not called. OTOH, I just read that Emma has the ability to ignore synthetic or bridge methods, which are enabled by default.

+3
source share

All Articles