-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #260 from blockchyp/feature/javaBug
Java test bug and php null exception fix
- Loading branch information
1 parent
8aae464
commit 83af8c0
Showing
7 changed files
with
187 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
PODFILE CHECKSUM: 915a0737343046da9ecfbb48bd571bc56e185b1f | ||
|
||
COCOAPODS: 1.8.4 | ||
COCOAPODS: 1.14.3 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
blockchyp-ios/Pods/Target Support Files/Pods-blockchyp-ios/Pods-blockchyp-ios-Info.plist
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
blockchyp-ios/Pods/Target Support Files/Pods-blockchyp-ios/Pods-blockchyp-ios.debug.xcconfig
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
...chyp-ios/Pods/Target Support Files/Pods-blockchyp-ios/Pods-blockchyp-ios.release.xcconfig
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code | ||
// is governed by a license that can be found in the LICENSE file. | ||
// | ||
// This file was generated automatically by the BlockChyp SDK Generator. | ||
// Changes to this file will be lost every time the code is regenerated. | ||
|
||
#import "BlockChypTest.h" | ||
|
||
@interface MerchantCredentialGenerationTest : BlockChypTest | ||
|
||
|
||
|
||
@end | ||
|
||
@implementation MerchantCredentialGenerationTest | ||
|
||
- (void)setUp { | ||
|
||
TestConfiguration *config = [self loadConfiguration]; | ||
BlockChyp *client = [[BlockChyp alloc] initWithApiKey:config.apiKey bearerToken:config.bearerToken signingKey:config.signingKey]; | ||
client.gatewayHost = config.gatewayHost; | ||
client.testGatewayHost = config.testGatewayHost; | ||
client.dashboardHost = config.dashboardHost; | ||
|
||
|
||
|
||
} | ||
|
||
- (void)tearDown { | ||
|
||
} | ||
|
||
- (void)testMerchantCredentialGeneration{ | ||
|
||
TestConfiguration *config = [self loadConfiguration]; | ||
BlockChyp *client = [[BlockChyp alloc] initWithApiKey:config.apiKey bearerToken:config.bearerToken signingKey:config.signingKey]; | ||
client.gatewayHost = config.gatewayHost; | ||
client.testGatewayHost = config.testGatewayHost; | ||
client.dashboardHost = config.dashboardHost; | ||
|
||
|
||
XCTestExpectation *expectation = [self expectationWithDescription:@"MerchantCredentialGeneration Test"]; | ||
|
||
NSMutableDictionary *request = [[NSMutableDictionary alloc] init]; | ||
request[@"test"] = @YES; | ||
request[@"merchantId"] = @"<MERCHANT ID>"; | ||
|
||
[client merchantCredentialGenerationWithRequest:request handler:^(NSDictionary *request, NSDictionary *response, NSError *error) { | ||
|
||
[self logJSON:response]; | ||
XCTAssertNotNil(response); | ||
// response assertions | ||
XCTAssertTrue([[response objectForKey:@"success"]boolValue]); | ||
|
||
[expectation fulfill]; | ||
}]; | ||
|
||
@try { | ||
[self waitForExpectationsWithTimeout:60 handler:nil]; | ||
} | ||
@catch (NSException *exception) { | ||
NSLog(@"Exception:%@",exception); | ||
} | ||
|
||
} | ||
|
||
@end |