use of com.ichi2.anki.multimediacard.activity.MultimediaEditFieldActivity in project AnkiChinaAndroid by ankichinateam.
the class BasicImageFieldControllerTest method invalidImageResultDoesNotCrashController.
@Test
public void invalidImageResultDoesNotCrashController() {
BasicImageFieldController controller = getValidControllerNoImage();
MultimediaEditFieldActivity activity = setupActivityMock(controller, controller.mActivity);
ContentResolver mock = MockContentResolver.returningEmptyCursor();
when(activity.getContentResolver()).thenReturn(mock);
// Act & Assert
AnkiAssert.assertDoesNotThrow(() -> performImageResult(controller, new Intent()));
}
Aggregations