From de83165f5915f3c34ec00a7b256fe6fc33252f6e Mon Sep 17 00:00:00 2001 From: Natthawut Haematulin Date: Fri, 6 Oct 2023 16:50:06 +0700 Subject: [PATCH] test: fix failed test --- .../java/co/omise/android/ui/CreditCardActivityTest.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sdk/src/sharedTest/java/co/omise/android/ui/CreditCardActivityTest.kt b/sdk/src/sharedTest/java/co/omise/android/ui/CreditCardActivityTest.kt index c99891ccb..471ade401 100644 --- a/sdk/src/sharedTest/java/co/omise/android/ui/CreditCardActivityTest.kt +++ b/sdk/src/sharedTest/java/co/omise/android/ui/CreditCardActivityTest.kt @@ -44,10 +44,8 @@ import org.hamcrest.Matcher import org.junit.After import org.junit.Assert.assertEquals import org.junit.Before -import org.junit.Ignore import org.junit.Test import org.junit.runner.RunWith -import org.mockito.internal.stubbing.answers.AnswersWithDelay import org.mockito.kotlin.any import org.mockito.kotlin.argumentCaptor import org.mockito.kotlin.doAnswer @@ -295,12 +293,8 @@ class CreditCardActivityTest { } @Test - @Ignore("Test failed") fun submitForm_disableFormWhenPressSubmit() { - whenever(mockClient.send(any(), any())).doAnswer { invocation -> - val callback = invocation.getArgument>(1) - callback.onRequestSucceed(Token()) - } + whenever(mockClient.send(any(), any())).doAnswer {} onView(withId(R.id.edit_card_number)).perform(typeText("4242424242424242")) onView(withId(R.id.edit_card_name)).perform(typeText("John Doe")) onView(withId(R.id.edit_expiry_date)).perform(typeText("1234"))