Properties
isNullMock
@property (nonatomic, readonly) BOOL isNullMock
mockedClass
@property (nonatomic, readonly) Class mockedClass
mockedProtocol
@property (nonatomic, readonly) Protocol *mockedProtocol
name
@property (nonatomic, readonly) NSString *name
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
Instance Methods
addMessageSpy:forMessagePattern:
- (void)addMessageSpy:(id<KWMessageSpying>)aSpy forMessagePattern:(KWMessagePattern *)aMessagePattern
captureArgument:atIndex:
- (KWCaptureSpy *)captureArgument:(SEL)selector atIndex:(NSUInteger)index
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
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, ...
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