Skip to content

Commit c84ed7a

Browse files
committed
Fixing UT case
1 parent 0886953 commit c84ed7a

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

auth0/src/test/java/com/auth0/android/provider/AuthenticationActivityTest.kt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,10 @@ public class AuthenticationActivityTest {
214214
MatcherAssert.assertThat(launchAsTwaCaptor.value, Is.`is`(false))
215215
MatcherAssert.assertThat(activity.deliveredIntent, Is.`is`(Matchers.nullValue()))
216216
activityController.pause().stop()
217-
//Browser is shown
217+
//Browser is shown, resume WITHOUT new intent — should NOT deliver or finish
218218
activityController.start().resume()
219-
MatcherAssert.assertThat(activity.deliveredIntent, Is.`is`(Matchers.notNullValue()))
220-
MatcherAssert.assertThat(
221-
activity.deliveredIntent!!.data,
222-
Is.`is`(Matchers.nullValue())
223-
) //null data == canceled
224-
MatcherAssert.assertThat(activity.isFinishing, Is.`is`(true))
219+
MatcherAssert.assertThat(activity.deliveredIntent, Is.`is`(Matchers.nullValue())) //nothing delivered
220+
MatcherAssert.assertThat(activity.isFinishing, Is.`is`(false)) //still waiting for result
225221
activityController.destroy()
226222
Mockito.verify(customTabsController).unbindService()
227223
}

0 commit comments

Comments
 (0)