You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Shift to mockito-kotlin and fix ReactCookieJarContainerTest so it's not just testing a mock.
Changelog: [Internal]
Reviewed By: javache
Differential Revision: D66898956
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/network/ReactCookieJarContainerTest.kt
+14-19Lines changed: 14 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -13,54 +13,49 @@ import okhttp3.HttpUrl
13
13
importorg.assertj.core.api.Assertions.assertThat
14
14
importorg.junit.Test
15
15
importorg.junit.runner.RunWith
16
-
importorg.mockito.Mockito.any
17
-
importorg.mockito.Mockito.mock
18
-
importorg.mockito.Mockito.`when`aswhenever
16
+
importorg.mockito.kotlin.any
17
+
importorg.mockito.kotlin.mock
18
+
importorg.mockito.kotlin.whenever
19
19
importorg.robolectric.RobolectricTestRunner
20
20
21
-
/**
22
-
* Returns Mockito.any() as nullable type to avoid java.lang.IllegalStateException when null is
0 commit comments