OCMock is an Objective-C implementation of mock objects.
I have started working with OCMock to write test cases for the existing project that I have integrated in my …
ios unit-testing xcode7 ocmockI often find in my iPhone Objective-C unit tests that I want stub out a class method, e.g. NSUrlConnection's +…
iphone objective-c cocoa-touch ocmockI'm learning how to use OCMock to test my iPhone's project and I have this scenario: a HeightMap class with …
xcode primitive ocmockI'm writing an iPhone application that needs to get some data from a web server. I'm using NSURLConnection to do …
iphone objective-c cocoa-touch ocmockAt my day job I've been spoiled with Mockito's never() verification, which can confirm that a mock method is never …
objective-c cocoa mocking mockito ocmockAssume a method signature such as the following: - (void)theMethod:(void(^)(BOOL completed))completionBlock; I would like to mock …
ios unit-testing ocmockIt seems that the first time I add andReturnValue on an OCMock stub, that return value is set in stone. …
unit-testing ocmockI'm using OCMock 1.70 and am having a problem mocking a simple method that returns a BOOL value. Here's my code: @…
cocoa unit-testing ocmockHow can I unit test my NSURLConnection delegate? I made a ConnectionDelegate class which conforms to different protocols to serve …
ios unit-testing nsurlconnection ocmock nsurlconnectiondelegateNeed to write unit testing for the following code, I want to do mock for class method canMakePayments, return yes …
objective-c unit-testing mocking static-methods ocmock