Unit testing tip – additional override

by Arnold Burian

Check out Unit testing tip – additional override by JR. Here is an excerpt:

If you have have a method you want to test, but it does some stuff you like for convenience, and you don’t really want to mess for the sake of testing, create with some overrides and do your testing there.

+ (void)foo:(NSURLSessionConfiguration *)sessionConfiguration
{
    TokenManager...

The full article is available here.

Take a class

You may also like

This website uses cookies to improve your experience. Accept Read More