Details

    • Type: Sub-task Sub-task
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: testing
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      For mocking network activity, we currently have our own "NSURLProtocol" implementation:

      https://github.com/aerogear/aerogear-ios/blob/master/AeroGear-iOS/AeroGear-iOSTests/utils/AGMockURLProtocol.h

      However there is a popular OpenSource project, which offers that functionality (and more). Our network lib (AFNetworking) also recommends this project in their FAQ

        Activity

        Hide
        Matthias Wessendorf
        added a comment -

        The OHHTTPStubs is located on Github: https://github.com/AliSoftware/OHHTTPStubs

        Show
        Matthias Wessendorf
        added a comment - The OHHTTPStubs is located on Github: https://github.com/AliSoftware/OHHTTPStubs
        Hide
        Matthias Wessendorf
        added a comment -

        we could do it for 1.2.0 as well;

        Show
        Matthias Wessendorf
        added a comment - we could do it for 1.2.0 as well;
        Show
        Matthias Wessendorf
        added a comment - An example use, currently used in our Push-SDK: https://github.com/matzew/ag-client-push-sdk/blob/master/push-sdkTests/AGDeviceRegistrationSpec.m and the mocked response file: https://github.com/matzew/ag-client-push-sdk/blob/master/push-sdkTests/response.json
        Hide
        Christos Vasilakis
        added a comment -

        merged.

        Show
        Christos Vasilakis
        added a comment - merged.

          People

          • Assignee:
            Christos Vasilakis
            Reporter:
            Matthias Wessendorf
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: