I have written a framework with all the utility(Common) functions in Objective-C. Since it is a framework, it does not have an App delegate file.
I have created an UIApplication class and have few utility methods in it.
@interface TestApplication : UIApplication
{
- (void)initialLockSetUp;
// more...
}
Now from my unit tests file, how can I test this "initialLockSetUp" method?
When I call (TestApplication*)[UIApplication sharedApplication]
, it is returning nil.