I'd like to take advantage of the testing classes and methods in Xcode to check the responses I receive from several asynchronous HTTP services requests my app does, in order to see if I receive and parse correctly the expected parameters.
Responses I receive are in JSON format, and my app parses them to create custom objects. I call services by means of an object that makes use of an NSURLConnection
connection and implements the NSURLConnectionDelegate
protocol to get the responses. I don't find a way to test this, since conforming my XCTestCase
class to NSURLConnectionDelegate
protocol does not seem to work.
Thanks