Skip to content

Commit

Permalink
Merge pull request #260 from blockchyp/feature/javaBug
Browse files Browse the repository at this point in the history
Java test bug and php null exception fix
  • Loading branch information
devops-blockchyp committed Feb 1, 2024
1 parent 8aae464 commit 83af8c0
Show file tree
Hide file tree
Showing 7 changed files with 187 additions and 178 deletions.
2 changes: 1 addition & 1 deletion blockchyp-ios/Podfile.lock
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
2 changes: 1 addition & 1 deletion blockchyp-ios/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

288 changes: 113 additions & 175 deletions blockchyp-ios/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 67 additions & 0 deletions blockchyp-ios/Tests/MerchantCredentialGenerationTest.m
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

0 comments on commit 83af8c0

Please sign in to comment.