Skip to content

Commit

Permalink
[google_maps_flutter] Clean Java test, consolidate Marker example. (f…
Browse files Browse the repository at this point in the history
…lutter#4400)

* Do not mock internal class
* Merge "Marker" examples into a single page.
  • Loading branch information
JamesMcIntosh authored and KyleFin committed Dec 21, 2021
1 parent e3c9db6 commit 1f25acf
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 283 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;

import com.google.android.gms.internal.maps.zzt;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.Marker;
Expand All @@ -35,8 +34,7 @@ public void controller_OnMarkerDragStart() {
final GoogleMap googleMap = mock(GoogleMap.class);
controller.setGoogleMap(googleMap);

final zzt z = mock(zzt.class);
final Marker marker = new Marker(z);
final Marker marker = mock(Marker.class);

final String googleMarkerId = "abc123";

Expand Down Expand Up @@ -69,8 +67,7 @@ public void controller_OnMarkerDragEnd() {
final GoogleMap googleMap = mock(GoogleMap.class);
controller.setGoogleMap(googleMap);

final zzt z = mock(zzt.class);
final Marker marker = new Marker(z);
final Marker marker = mock(Marker.class);

final String googleMarkerId = "abc123";

Expand Down Expand Up @@ -103,8 +100,7 @@ public void controller_OnMarkerDrag() {
final GoogleMap googleMap = mock(GoogleMap.class);
controller.setGoogleMap(googleMap);

final zzt z = mock(zzt.class);
final Marker marker = new Marker(z);
final Marker marker = mock(Marker.class);

final String googleMarkerId = "abc123";

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// ignore_for_file: public_member_api_docs

import 'package:flutter/material.dart';
import 'package:google_maps_flutter_example/drag_marker.dart';
import 'package:google_maps_flutter_example/lite_mode.dart';
import 'animate_camera.dart';
import 'map_click.dart';
Expand Down Expand Up @@ -35,7 +34,6 @@ final List<GoogleMapExampleAppPage> _allPages = <GoogleMapExampleAppPage>[
PlacePolylinePage(),
PlacePolygonPage(),
PlaceCirclePage(),
DragMarkerPage(),
PaddingPage(),
SnapshotPage(),
LiteModePage(),
Expand Down
Loading

0 comments on commit 1f25acf

Please sign in to comment.