Details

    • Type: Sub-task
    • Status: Closed (View Workflow)
    • Priority: 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

        Gliffy Diagrams

          Activity

          Hide
          mwessendorf Matthias Wessendorf added a comment -

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

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

          we could do it for 1.2.0 as well;

          Show
          mwessendorf Matthias Wessendorf added a comment - we could do it for 1.2.0 as well;
          Show
          mwessendorf 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
          cvasilak Christos Vasilakis added a comment -

          merged.

          Show
          cvasilak Christos Vasilakis added a comment - merged.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development