Fix test compilation by removing testInitializeFragmentWithUploadItem with unresolved onImageProcessed (#6404)

This commit is contained in:
Kota-Jagadeesh 2025-10-11 06:50:28 +05:30
parent 29a8762a1c
commit f1bf288278

View file

@ -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() {