Skip to content
Merged
Prev Previous commit
Next Next commit
removal in image_picker android unit test
  • Loading branch information
Gray Mackall committed Jun 17, 2024
commit d3abcc6a371a309b0993db61c7f73a06f46977f0
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ public class ImagePickerPluginTest {
.setCamera(Messages.SourceCamera.REAR)
.build();

@SuppressWarnings("deprecation")
@Mock
io.flutter.plugin.common.PluginRegistry.Registrar mockRegistrar;

@Mock ActivityPluginBinding mockActivityBinding;
@Mock FlutterPluginBinding mockPluginBinding;

Expand All @@ -97,7 +93,6 @@ public class ImagePickerPluginTest {
@Before
public void setUp() {
mockCloseable = MockitoAnnotations.openMocks(this);
when(mockRegistrar.context()).thenReturn(mockApplication);
when(mockActivityBinding.getActivity()).thenReturn(mockActivity);
when(mockPluginBinding.getApplicationContext()).thenReturn(mockApplication);
plugin = new ImagePickerPlugin(mockImagePickerDelegate, mockActivity);
Expand Down