I have two classes of this structure:
public class Class1 extends Thread
{
public void Run() { //basically starting the timer }
private class Class2 extends TimerTask
{
private void Method1 ();
private void Method2 ();
}
}
I want to Unit Test the methods of Class2 somehow, because thats where all the data is processed. How should I do that using JUnit?