I'm trying to unit test a class which is creating a CCSprite from an image in the constructor. The constructor crashes with a nullpointer exception when running it in the unit test.
I assume that something needs to be initialized before loading a sprite. Any suggestions? I don't need the sprite's image itself, but I need to be able to instantiate the class.