Skip to content

Commit 63a879b

Browse files
committed
Checking another fix
1 parent daf3a5e commit 63a879b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import android.app.Activity
44
import android.content.Context
55
import android.content.Intent
66
import android.net.Uri
7+
import android.os.Looper
78
import android.os.Parcelable
89
import androidx.test.espresso.intent.matcher.IntentMatchers
910
import androidx.test.espresso.intent.matcher.UriMatchers
@@ -55,6 +56,7 @@ import org.mockito.Mockito.`when`
5556
import org.mockito.MockitoAnnotations
5657
import org.robolectric.Robolectric
5758
import org.robolectric.RobolectricTestRunner
59+
import org.robolectric.Shadows.shadowOf
5860
import org.robolectric.annotation.Config
5961
import org.robolectric.shadows.ShadowLooper
6062
import java.io.ByteArrayInputStream
@@ -1710,10 +1712,12 @@ public class WebAuthProviderTest {
17101712
)
17111713
Mockito.doAnswer {
17121714
callbackCaptor.firstValue.onSuccess(codeCredentials)
1715+
null
17131716
}.`when`(pkce).getToken(eq("1234"), callbackCaptor.capture())
17141717
Assert.assertTrue(resume(intent))
17151718
mockAPI.takeRequest()
17161719
ShadowLooper.idleMainLooper()
1720+
ShadowLooper.idleMainLooper()
17171721
verify(authCallback).onFailure(authExceptionCaptor.capture())
17181722
val error = authExceptionCaptor.firstValue
17191723
assertThat(error, `is`(notNullValue()))
@@ -1792,6 +1796,7 @@ public class WebAuthProviderTest {
17921796
proxyAccount.networkingClient = SSLTestUtils.testClient
17931797
val authCallback = mock<Callback<Credentials, AuthenticationException>>()
17941798
login(proxyAccount)
1799+
.withIdTokenVerificationIssuer("")
17951800
.withIdTokenVerificationIssuer("")
17961801
.withPKCE(pkce)
17971802
.start(activity, authCallback)

0 commit comments

Comments
 (0)