It is possible to guarantee a unique instance of an object with enums in Java as following:
public enum EmmaTest {
;
public static int someStaticMethod() {
return 33;
}
}
How can one implement 100% Emma test coverage on such objects? Is it possible? Or is it possible to tell Emma to ignore some methods?
The best I can get is:
enum
seems like a flaw that Emma should correct. However, 100% test coverage is likely to be counterproductive for you. – Galinagalindo