Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove CustomerSessionProxy from PaymentMethodsActivity (#861)
* Remove CustomerSessionProxy from PaymentMethodsActivity The `CustomerSessionProxy` interface is not necessary and complicates the logic of `PaymentMethodsActivity` Instead, set a mock `CustomerSession` object as the current instance.
- Loading branch information
1 parent
2a7edd8
commit 65ae04a
Showing
4 changed files
with
99 additions
and
133 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
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
12 changes: 12 additions & 0 deletions
12
stripe/src/test/java/com/stripe/android/CustomerSessionTestHelper.java
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,12 @@ | ||
package com.stripe.android; | ||
|
||
import android.support.annotation.NonNull; | ||
|
||
public class CustomerSessionTestHelper { | ||
private CustomerSessionTestHelper() { | ||
} | ||
|
||
public static void setInstance(@NonNull CustomerSession customerSession) { | ||
CustomerSession.setInstance(customerSession); | ||
} | ||
} |
Oops, something went wrong.