123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
-
-
- #import <Foundation/Foundation.h>
-
- @class OCMLocation;
- @class OCMInvocationStub;
- @class OCMStubRecorder;
- @class OCMInvocationMatcher;
- @class OCMInvocationExpectation;
-
-
- @interface OCMockObject : NSProxy
- {
- BOOL isNice;
- BOOL expectationOrderMatters;
- NSMutableArray *stubs;
- NSMutableArray *expectations;
- NSMutableArray *exceptions;
- NSMutableArray *invocations;
- }
-
- + (id)mockForClass:(Class)aClass;
- + (id)mockForProtocol:(Protocol *)aProtocol;
- + (id)partialMockForObject:(NSObject *)anObject;
-
- + (id)niceMockForClass:(Class)aClass;
- + (id)niceMockForProtocol:(Protocol *)aProtocol;
-
- + (id)observerMock;
-
- - (instancetype)init;
-
- - (void)setExpectationOrderMatters:(BOOL)flag;
-
- - (id)stub;
- - (id)expect;
- - (id)reject;
-
- - (id)verify;
- - (id)verifyAtLocation:(OCMLocation *)location;
-
- - (void)verifyWithDelay:(NSTimeInterval)delay;
- - (void)verifyWithDelay:(NSTimeInterval)delay atLocation:(OCMLocation *)location;
-
- - (void)stopMocking;
-
-
-
- - (void)addStub:(OCMInvocationStub *)aStub;
- - (void)addExpectation:(OCMInvocationExpectation *)anExpectation;
-
- - (BOOL)handleInvocation:(NSInvocation *)anInvocation;
- - (void)handleUnRecordedInvocation:(NSInvocation *)anInvocation;
- - (BOOL)handleSelector:(SEL)sel;
-
- - (void)verifyInvocation:(OCMInvocationMatcher *)matcher;
- - (void)verifyInvocation:(OCMInvocationMatcher *)matcher atLocation:(OCMLocation *)location;
-
- @end
-
|