forked from loafle/openapi-generator-original
Update unit tests of objc client
This commit is contained in:
parent
95cb5f73a3
commit
0092d8a63b
@ -113,13 +113,13 @@
|
||||
/// Deletes a pet
|
||||
///
|
||||
///
|
||||
/// @param apiKey
|
||||
/// @param petId Pet id to delete
|
||||
/// @param apiKey
|
||||
///
|
||||
///
|
||||
/// @return
|
||||
-(NSNumber*) deletePetWithCompletionBlock :(NSString*) apiKey
|
||||
petId:(NSNumber*) petId
|
||||
-(NSNumber*) deletePetWithCompletionBlock :(NSNumber*) petId
|
||||
apiKey:(NSString*) apiKey
|
||||
|
||||
|
||||
completionHandler: (void (^)(NSError* error))completionBlock;
|
||||
|
@ -594,14 +594,14 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
///
|
||||
/// Deletes a pet
|
||||
///
|
||||
/// @param apiKey
|
||||
///
|
||||
/// @param petId Pet id to delete
|
||||
///
|
||||
/// @param apiKey
|
||||
///
|
||||
/// @returns void
|
||||
///
|
||||
-(NSNumber*) deletePetWithCompletionBlock: (NSString*) apiKey
|
||||
petId: (NSNumber*) petId
|
||||
-(NSNumber*) deletePetWithCompletionBlock: (NSNumber*) petId
|
||||
apiKey: (NSString*) apiKey
|
||||
|
||||
|
||||
completionHandler: (void (^)(NSError* error))completionBlock {
|
||||
|
@ -199,7 +199,7 @@
|
||||
if(error){
|
||||
XCTFail(@"got error %@", error);
|
||||
}
|
||||
[api deletePetWithCompletionBlock:@"" petId:[NSString stringWithFormat:@"%@", [pet _id]] completionHandler:^(NSError *error) {
|
||||
[api deletePetWithCompletionBlock:pet._id apiKey:@"" completionHandler:^(NSError *error) {
|
||||
if(error){
|
||||
XCTFail(@"got error %@", error);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user