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

Commit

Permalink
migrate to new mockito API (#6153)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield authored Jul 28, 2022
1 parent 5b44c71 commit e183aec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import 'google_maps_controller_test.mocks.dart';
const double _acceptableDelta = 0.0000000001;

@GenerateMocks(<Type>[], customMocks: <MockSpec<dynamic>>[
MockSpec<CirclesController>(returnNullOnMissingStub: true),
MockSpec<PolygonsController>(returnNullOnMissingStub: true),
MockSpec<PolylinesController>(returnNullOnMissingStub: true),
MockSpec<MarkersController>(returnNullOnMissingStub: true),
MockSpec<CirclesController>(onMissingStub: OnMissingStub.returnDefault),
MockSpec<PolygonsController>(onMissingStub: OnMissingStub.returnDefault),
MockSpec<PolylinesController>(onMissingStub: OnMissingStub.returnDefault),
MockSpec<MarkersController>(onMissingStub: OnMissingStub.returnDefault),
])

/// Test Google Map Controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import 'package:mockito/mockito.dart';
import 'google_maps_plugin_test.mocks.dart';

@GenerateMocks(<Type>[], customMocks: <MockSpec<dynamic>>[
MockSpec<GoogleMapController>(returnNullOnMissingStub: true),
MockSpec<GoogleMapController>(onMissingStub: OnMissingStub.returnDefault),
])

/// Test GoogleMapsPlugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ dev_dependencies:
http: ^0.13.0
integration_test:
sdk: flutter
mockito: ^5.0.0
mockito: ^5.3.0

0 comments on commit e183aec

Please sign in to comment.