Hi Karthik,
I have configured the quartz scheduling and its working fine.
What I want to try using Junit is: The Job call's a method after a required interval, I want to test the value of the method and other functionalities associated with this method.
Code:
Public class First {
private HashMap myData = null;
public void reload(){
myData = calling some method;
}
}
I have created an instance of First in Junit then used sleep for some interval. In between the sleep interval the reload has be called by the Job and that has filled the myData as per log file. Now when I try to test the value of myData using Junit its giving as NULL. The instance of First is having myData as NULL value.
Does anyone has idea how to test the value of this instance.
Thanks in Advance
Khan