OCMock is an Objective-C implementation of mock objects.
The OCMock framework provides the ability of using mock objects in Objective-C applications. Some of the functionality in the framework is:
- Create fail-fast and nice mocks.
- Ability to stub and return predetermined values.
- Mock instance and class methods.
- Mock protocols and notification observers.
- Partial mocks to stand in for a real object.
- Forward messages to other objects.
Relevant links