Skip to content

Commit

Permalink
Move VisaCheckout files into VisaCheckout module.
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Shropshire <[email protected]>
  • Loading branch information
sarahkoop committed Mar 8, 2021
1 parent 7601548 commit c09e80a
Show file tree
Hide file tree
Showing 39 changed files with 7 additions and 412 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions VisaCheckout/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
3 changes: 2 additions & 1 deletion ZZZ/VisaCheckout/build.gradle → VisaCheckout/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ android {

dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.braintreepayments.api:braintree-core:4.0.0-SNAPSHOT'
implementation project(':BraintreeCore')

implementation(group: 'com.visa.checkout', name: 'visacheckout-android-sdk', version: '6.6.1', ext: 'aar')

testImplementation project(':TestUtils')
testImplementation 'com.google.android.gms:play-services-wallet:16.0.1'
testImplementation 'androidx.test:core:1.1.0'
testImplementation 'androidx.test:runner:1.1.1'
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.util.List;
import java.util.concurrent.CountDownLatch;

import static com.braintreepayments.api.FixturesHelper.stringFromFixture;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertNotNull;
import static org.mockito.Matchers.isNull;
Expand All @@ -45,8 +44,7 @@ public class VisaCheckoutUnitTest {

@Before
public void setup() throws Exception {
JSONObject visaConfiguration = new JSONObject(stringFromFixture("configuration/with_visa_checkout.json"));
mConfigurationWithVisaCheckout = Configuration.fromJson(visaConfiguration.toString());
mConfigurationWithVisaCheckout = Configuration.fromJson(Fixtures.CONFIGURATION_WITH_VISA_CHECKOUT);

visaPaymentSummary = PowerMockito.mock(VisaPaymentSummary.class);
when(visaPaymentSummary.getCallId()).thenReturn("stubbedCallId");
Expand Down Expand Up @@ -144,7 +142,7 @@ public void onResult(ProfileBuilder profileBuilder, Exception error) {
@Test
public void tokenize_whenSuccessful_postsVisaPaymentMethodNonce() throws Exception {
VisaCheckoutNonce visaCheckoutNonce =
VisaCheckoutNonce.fromJson(stringFromFixture("payment_methods/visa_checkout_response.json"));
VisaCheckoutNonce.fromJson(Fixtures.PAYMENT_METHODS_VISA_CHECKOUT_RESPONSE);

TokenizationClient tokenizationClient = new MockTokenizationClientBuilder()
.successNonce(visaCheckoutNonce)
Expand All @@ -164,7 +162,7 @@ public void tokenize_whenSuccessful_postsVisaPaymentMethodNonce() throws Excepti
@Test
public void tokenize_whenSuccessful_sendsAnalyticEvent() throws Exception {
VisaCheckoutNonce visaCheckoutNonce =
VisaCheckoutNonce.fromJson(stringFromFixture("payment_methods/visa_checkout_response.json"));
VisaCheckoutNonce.fromJson(Fixtures.PAYMENT_METHODS_VISA_CHECKOUT_RESPONSE);

TokenizationClient tokenizationClient = new MockTokenizationClientBuilder()
.successNonce(visaCheckoutNonce)
Expand Down
11 changes: 0 additions & 11 deletions ZZZ/ACKNOWLEDGEMENT.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit c09e80a

Please sign in to comment.