From 48866191c32a74e68f34a04bfb89e8a391c1d94f Mon Sep 17 00:00:00 2001 From: malinajirka Date: Thu, 10 Feb 2022 11:50:22 +0100 Subject: [PATCH] Fix stripe extension test --- .../ReleaseStack_InPersonPaymentsStripeExtensionTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/src/androidTest/java/org/wordpress/android/fluxc/release/ReleaseStack_InPersonPaymentsStripeExtensionTest.kt b/example/src/androidTest/java/org/wordpress/android/fluxc/release/ReleaseStack_InPersonPaymentsStripeExtensionTest.kt index 93928cb2fd..02bf939bae 100644 --- a/example/src/androidTest/java/org/wordpress/android/fluxc/release/ReleaseStack_InPersonPaymentsStripeExtensionTest.kt +++ b/example/src/androidTest/java/org/wordpress/android/fluxc/release/ReleaseStack_InPersonPaymentsStripeExtensionTest.kt @@ -11,6 +11,7 @@ import org.wordpress.android.fluxc.store.WCInPersonPaymentsStore.InPersonPayment import javax.inject.Inject import org.junit.Assert.assertFalse import org.junit.Assert.assertTrue +import java.util.Locale class ReleaseStack_InPersonPaymentsStripeExtensionTest : ReleaseStack_WCBase() { @Inject internal lateinit var store: WCInPersonPaymentsStore @@ -46,7 +47,7 @@ class ReleaseStack_InPersonPaymentsStripeExtensionTest : ReleaseStack_WCBase() { assertEquals("US", result.model?.country) assertEquals(false, result.model?.hasPendingRequirements) assertEquals(false, result.model?.hasOverdueRequirements) - assertTrue(result.model?.statementDescriptor.isNullOrEmpty()) + assertEquals(result.model?.statementDescriptor?.toLowerCase(Locale.ROOT), "custom descriptor") assertEquals("US", result.model?.country) assertEquals("usd", result.model?.storeCurrencies?.default) assertEquals(listOf("usd"), result.model?.storeCurrencies?.supportedCurrencies)