Skip to content

Commit

Permalink
Fix failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaynewstrom-stripe committed Oct 30, 2023
1 parent ed2770f commit 96f8fee
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.google.common.truth.Truth.assertThat
import com.stripe.android.core.networking.ApiRequest
import com.stripe.android.model.Customer
import com.stripe.android.model.CustomerFixtures
import com.stripe.android.model.ListPaymentMethodsParams
import com.stripe.android.model.PaymentMethod
import com.stripe.android.model.PaymentMethodCreateParams
import com.stripe.android.model.PaymentMethodFixtures
Expand Down Expand Up @@ -360,6 +361,14 @@ class PaymentSessionTest {
}

private class FakeStripeRepository : AbsFakeStripeRepository() {
override suspend fun getPaymentMethods(
listPaymentMethodsParams: ListPaymentMethodsParams,
productUsageTokens: Set<String>,
requestOptions: ApiRequest.Options
): Result<List<PaymentMethod>> {
return Result.success(emptyList())
}

override suspend fun createPaymentMethod(
paymentMethodCreateParams: PaymentMethodCreateParams,
options: ApiRequest.Options
Expand Down

0 comments on commit 96f8fee

Please sign in to comment.