i am developing test functions using JUnit and Netbeans. i went through the tutorial of Netbeans for using JUnit. However it did not contain a case when the function i want to test has an ActionEvent. i tried making some test functions for functions which have ActionEvent in their list of arguments. It always gives error- Null Pointer Exception.
i understand that it is due to the fact that when Netbeans creates a skelton for test function it by default. i want to know what possible value can i assign there so that the test does not fail.