#63 CoverageAnnotationTest gives false positives on compare()

open
None
5
2012-10-08
2010-07-22
Egon Willighagen
No

For example, it reports:

geometry.cip.rules.MassNumberRule#compare(Object,Object) does not have a test method
geometry.cip.rules.CombinedAtomicMassNumberRule#compare(Object,Object) does not have a test method
geometry.cip.rules.AtomicNumberRule#compare(Object,Object) does not have a test method
geometry.cip.rules.CIPLigandRule#compare(Object,Object) does not have a test method

for a class that implements an interfaces extends Comparator<ILigand> and implements compare(ILigand, ILigand)...

However, the coverage testing seems to think there is a method compare(Object, Object) too in the class...

Discussion