Is there any way to get the code coverage to cover the class declaration of a class like so?
public class MyClass{
public static void foo(int bar){
System.out.println("The Number is: "+bar);
}
}
I can easily hit the foo method with JUnit testing, but the MyClass declaration stays red. Is this because the class itself has no constructor? And if so, is there any way to cover that bit of code, without changing the code of the class itself?
Thanks