mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Fix test compilation by removing testInitializeFragmentWithUploadItem with unresolved onImageProcessed (#6404)
This commit is contained in:
parent
29a8762a1c
commit
f1bf288278
1 changed files with 0 additions and 18 deletions
|
|
@ -160,24 +160,6 @@ class UploadMediaDetailFragmentUnitTest {
|
|||
fragment.onCreate(Bundle())
|
||||
}
|
||||
|
||||
@Test
|
||||
@Throws(Exception::class)
|
||||
fun testInitializeFragmentWithUploadItem() {
|
||||
Shadows.shadowOf(Looper.getMainLooper()).idle()
|
||||
Whitebox.setInternalState(fragment, "presenter", presenter)
|
||||
Whitebox.setInternalState(fragment, "uploadItem", uploadItem)
|
||||
`when`(uploadItem.mediaUri).thenReturn(mediaUri)
|
||||
`when`(callback.getIndexInViewFlipper(fragment)).thenReturn(0)
|
||||
`when`(callback.totalNumberOfSteps).thenReturn(2)
|
||||
val method: Method =
|
||||
UploadMediaDetailFragment::class.java.getDeclaredMethod(
|
||||
"initializeFragment",
|
||||
)
|
||||
method.isAccessible = true
|
||||
method.invoke(fragment)
|
||||
Mockito.verify(presenter).onImageProcessed(uploadItem, 0)
|
||||
}
|
||||
|
||||
@Test
|
||||
@Throws(Exception::class)
|
||||
fun testOnCreateView() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue