Properties
isNullMock
@property (nonatomic, readonly) BOOL isNullMock
isPartialMock
@property (nonatomic, readonly) BOOL isPartialMock
mockName
@property (nonatomic, readonly) NSString *mockName
mockedClass
@property (nonatomic, readonly) Class mockedClass
mockedObject
@property (nonatomic, readonly) id mockedObject
mockedProtocol
@property (nonatomic, readonly) Protocol *mockedProtocol
Class Methods
mockForClass:
+ (id)mockForClass:(Class)aClass
mockForProtocol:
+ (id)mockForProtocol:(Protocol *)aProtocol
mockWithName:forClass:
+ (id)mockWithName:(NSString *)aName forClass:(Class)aClass
mockWithName:forProtocol:
+ (id)mockWithName:(NSString *)aName forProtocol:(Protocol *)aProtocol
nullMockForClass:
+ (id)nullMockForClass:(Class)aClass
nullMockForProtocol:
+ (id)nullMockForProtocol:(Protocol *)aProtocol
nullMockWithName:forClass:
+ (id)nullMockWithName:(NSString *)aName forClass:(Class)aClass
nullMockWithName:forProtocol:
+ (id)nullMockWithName:(NSString *)aName forProtocol:(Protocol *)aProtocol
partialMockForObject:
+ (id)partialMockForObject:(id)object
partialMockWithName:forObject:
+ (id)partialMockWithName:(NSString *)aName forObject:(id)object
Instance Methods
addMessageSpy:forMessagePattern:
- (void)addMessageSpy:(id<KWMessageSpying>)aSpy forMessagePattern:(KWMessagePattern *)aMessagePattern
clearStubs
- (void)clearStubs
expect:
- (void)expect:(SEL)aSelector
expect:withArguments:
- (void)expect:(SEL)aSelector withArguments:(id)firstArgument, ...
expectMessagePattern:
- (void)expectMessagePattern:(KWMessagePattern *)aMessagePattern
initAsNullMockForClass:
- (id)initAsNullMockForClass:(Class)aClass
initAsNullMockForProtocol:
- (id)initAsNullMockForProtocol:(Protocol *)aProtocol
initAsNullMockWithName:forClass:
- (id)initAsNullMockWithName:(NSString *)aName forClass:(Class)aClass
initAsNullMockWithName:forProtocol:
- (id)initAsNullMockWithName:(NSString *)aName forProtocol:(Protocol *)aProtocol
initAsPartialMockForObject:
- (id)initAsPartialMockForObject:(id)object
initAsPartialMockWithName:forObject:
- (id)initAsPartialMockWithName:(NSString *)aName forObject:(id)object
initForClass:
- (id)initForClass:(Class)aClass
initForProtocol:
- (id)initForProtocol:(Protocol *)aProtocol
initWithName:forClass:
- (id)initWithName:(NSString *)aName forClass:(Class)aClass
initWithName:forProtocol:
- (id)initWithName:(NSString *)aName forProtocol:(Protocol *)aProtocol
removeMessageSpy:forMessagePattern:
- (void)removeMessageSpy:(id<KWMessageSpying>)aSpy forMessagePattern:(KWMessagePattern *)aMessagePattern
stub:
- (void)stub:(SEL)aSelector
stub:andReturn:
- (void)stub:(SEL)aSelector andReturn:(id)aValue
stub:andReturn:withArguments:
- (void)stub:(SEL)aSelector andReturn:(id)aValue withArguments:(id)firstArgument, ...
stub:withArguments:
- (void)stub:(SEL)aSelector withArguments:(id)firstArgument, ...
stub:withBlock:
- (void)stub:(SEL)aSelector withBlock:(id ( ^ ) ( NSArray *params ))block
stubAndReturn:
- (id)stubAndReturn:(id)aValue
stubAndReturn:times:afterThatReturn:
- (id)stubAndReturn:(id)aValue times:(id)times afterThatReturn:(id)aSecondValue
stubMessagePattern:andReturn:
- (void)stubMessagePattern:(KWMessagePattern *)aMessagePattern andReturn:(id)aValue
stubMessagePattern:andReturn:times:afterThatReturn:
- (void)stubMessagePattern:(KWMessagePattern *)aMessagePattern andReturn:(id)aValue times:(id)times afterThatReturn:(id)aSecondValue