Hi I have a class which the invoke the run() method of a thread from the constructor of the class by calling the start() method , So please help me to Stubs the so to write the junit test cases . The class is as follows
public class MyClass extends Thread { Student st=null; University uni= new University();
public MyClass(Student st) { this.st=st; start(); } public void run() { uni.calculate(st); } }
Thanks