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!
- To run the example project, clone the repo, and run
pod install
from the Example directory first. #import <TAWS/TAWS.h>
in your test case.
AWSMock *mock = [AWSMock mockWith:[AWSSNS class]
receive:@selector(subscribe:)
with:request
andReturn:response];
// Call Subscribe API
[mock verify];
AWSStub
is alias to AWSMock
.
AWSStub *stub = [AWSStub stubWith:[AWSSNS class]
receive:@selector(subscribe:)
with:request
andReturn:response];
- AWSAutoScaling
- AWSCloudWatch
- AWSCognitoIdentity
- AWSCognitoSync
- AWSDynamoDB
- AWSEC2
- AWSElasticLoadBalancing
- AWSKinesis
- AWSLambda
- AWSMachineLearning
- AWSS3
- AWSSES
- AWSSNS
- AWSSQS
- AWSSimpleDB
TAWS require AWSiOSSDKv2.
TAWS is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "TAWS"
TAWS is available under the MIT license. See the LICENSE file for more info.