Just create a simple method in the class, and put a debug statement in the method. In the test case after the class has been created, invoke this simple method.
Just create a simple method in the class, and put a debug statement in the method. In the test case after the class has been created, invoke this simple method.
Just create a simple method in the class, and put a debug statement in the method. In the test case after the class has been created, invoke this simple method.
All Answers
Looks like you have an empty class. In your test case, just declare a variable of type of this class and then allocate memory to this variable.
I have wrote This
public class MDFException extends Exception{
static testMethod void TestUnit() {
MDFException obj;
obj = new MDFException ();
}
}
But it is not give coverage .
Just create a simple method in the class, and put a debug statement in the method. In the test case after the class has been created, invoke this simple method.
Thanks