Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit b096c1c

Browse files
committed
Fix unit_test error.
1 parent 549daf2 commit b096c1c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/image_picker/image_picker/android/src/test/java/io/flutter/plugins/imagepicker/ImagePickerPluginTest.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package io.flutter.plugins.imagepicker;
66

77
import static org.hamcrest.core.IsEqual.equalTo;
8-
import static org.junit.Assert.assertNull;
98
import static org.junit.Assert.assertThat;
109
import static org.junit.Assert.assertTrue;
1110
import static org.mockito.ArgumentMatchers.any;
@@ -35,7 +34,6 @@ public class ImagePickerPluginTest {
3534
private static final String PICK_IMAGE = "pickImage";
3635
private static final String PICK_MULTI_IMAGE = "pickMultiImage";
3736
private static final String PICK_VIDEO = "pickVideo";
38-
private static final String ON_DETACHED_FROM_ACTIVITY = "onDetachedFromActivity";
3937

4038
@Rule public ExpectedException exception = ExpectedException.none();
4139

@@ -149,13 +147,6 @@ public void onMethodCall_PickingVideo_WhenSourceIsCamera_InvokesTakeImageWithCam
149147
verify(mockImagePickerDelegate).setCameraDevice(eq(CameraDevice.FRONT));
150148
}
151149

152-
@Test
153-
public void onDetachedFromActivity_ActivityShouldBeNull() {
154-
MethodCall call = buildMethodCall(ON_DETACHED_FROM_ACTIVITY);
155-
plugin.onMethodCall(call, mockResult);
156-
assertNull(mockActivity);
157-
}
158-
159150
@Test
160151
public void onResiter_WhenAcitivityIsNull_ShouldNotCrash() {
161152
when(mockRegistrar.activity()).thenReturn(null);

0 commit comments

Comments
 (0)