Latest 0.1.0
Homepage https://github.com/classmethod/TAWS-iOS
License MIT
Platforms ios 7.0, requires ARC
Dependencies AWSCore, AWSAutoScaling, AWSCloudWatch, AWSDynamoDB, AWSEC2, AWSElasticLoadBalancing, AWSKinesis, AWSMobileAnalytics, AWSS3, AWSSES, AWSSimpleDB, AWSSNS, AWSSQS, AWSCognito, AWSLambda, AWSMachineLearning, AWSAPIGateway, OCMock, Bolts
Authors

CI Status
Version
License
Platform

TAWS is a Mocking & Stubbing Library for AWSiOSSDKv2.
AWSMock is simple class that can write stub & mock, it like RSpec.
Let try mocking and stubbing to AWS!

Usage

  1. To run the example project, clone the repo, and run pod install from the Example directory first.
  2. #import <TAWS/TAWS.h> in your test case.

AWSMock

AWSMock *mock = [AWSMock mockWith:[AWSSNS class]
                          receive:@selector(subscribe:)
                             with:request 
                        andReturn:response];

// Call Subscribe API

[mock verify];

AWSStub

AWSStub is alias to AWSMock.

AWSStub *stub = [AWSStub stubWith:[AWSSNS class]
                          receive:@selector(subscribe:)
                             with:request 
                        andReturn:response];

Suported Services

  • AWSAutoScaling
  • AWSCloudWatch
  • AWSCognitoIdentity
  • AWSCognitoSync
  • AWSDynamoDB
  • AWSEC2
  • AWSElasticLoadBalancing
  • AWSKinesis
  • AWSLambda
  • AWSMachineLearning
  • AWSS3
  • AWSSES
  • AWSSNS
  • AWSSQS
  • AWSSimpleDB

Requirements

TAWS require AWSiOSSDKv2.

Installation

TAWS is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "TAWS"

Author

Classmethod, Inc.

License

TAWS is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "TAWS",
    "version": "0.1.0",
    "summary": "Mock & Stub for AWSiOSSDKv2.",
    "description": "TAWS is a Mocking & Stubbing Library for [AWSiOSSDKv2](https://github.com/aws/aws-sdk-ios).n`AWSMock` is simple class that can write stub & mock, it like RSpec.nLet try mocking and stubbing to AWS!",
    "homepage": "https://github.com/classmethod/TAWS-iOS",
    "license": "MIT",
    "authors": {
        "suwa.yuki": "[email protected]"
    },
    "source": {
        "git": "https://github.com/classmethod/TAWS-iOS.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/classmethod",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "TAWS": [
            "Pod/Assets/*.png"
        ]
    },
    "public_header_files": "Pod/Classes/**/*.h",
    "dependencies": {
        "AWSCore": [
            "~> 2.2.2"
        ],
        "AWSAutoScaling": [
            "~> 2.2.2"
        ],
        "AWSCloudWatch": [
            "~> 2.2.2"
        ],
        "AWSDynamoDB": [
            "~> 2.2.2"
        ],
        "AWSEC2": [
            "~> 2.2.2"
        ],
        "AWSElasticLoadBalancing": [
            "~> 2.2.2"
        ],
        "AWSKinesis": [
            "~> 2.2.2"
        ],
        "AWSMobileAnalytics": [
            "~> 2.2.2"
        ],
        "AWSS3": [
            "~> 2.2.2"
        ],
        "AWSSES": [
            "~> 2.2.2"
        ],
        "AWSSimpleDB": [
            "~> 2.2.2"
        ],
        "AWSSNS": [
            "~> 2.2.2"
        ],
        "AWSSQS": [
            "~> 2.2.2"
        ],
        "AWSCognito": [
            "~> 2.2.2"
        ],
        "AWSLambda": [
            "~> 2.2.2"
        ],
        "AWSMachineLearning": [
            "~> 2.2.2"
        ],
        "AWSAPIGateway": [
            "~> 2.2.2"
        ],
        "OCMock": [
            "~> 3.1.2"
        ],
        "Bolts": [
            "~> 1.1.5"
        ]
    }
}

Pin It on Pinterest

Share This