OCMockito
OCMockito copied to clipboard
Mockito for Objective-C: creation, verification and stubbing of mock objects
I've tried to stub the protocol method but it return as nil. Please check the following code. ``` @protocol Client - (Account* _Nullable) login:(nullable NSString*)username password:(nonnull NSData*)login; ``` And I...
> If Xcode complains about multiple methods with the same name, cast verify to the mocked class. Without the cast, autocomplete is also less helpful. I've been able to fix...
Hi Jon, We're running into some issues where mocks injected into some code under test cause problems if the mock is called from the dealloc method AND ONLY the dealloc...
Possibly a new MKTVerificationMode, or possibly verifyWithTimeout
Sometimes I need to push a Mock object into a proprietary framework (such as Apple's or a framework like Google's Analytics SDK). In these cases, it would be useful if...
Currently all mocks created by OCMockito are 'nice' mocks and always return something even on methods that have not been stubbed. Would be nice to have a `strictMock()` alternative that...
Hi everybody, I'm new to OCMockito and OCHamcrest, so I might be missing something, but I wonder why there is no verifyNoMoreInteractions() method, like in Mockito for Java. Is there...