blob: 271c63bdc25c5a4450ce2cfe7fcd9f74c156d79f [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.googlemaps;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.spy;
import com.google.android.gms.internal.maps.zzad;
import com.google.android.gms.maps.model.Polygon;
import org.junit.Test;
import org.mockito.Mockito;
public class PolygonControllerTest {
@Test
public void controller_SetsStrokeDensity() {
final zzad z = mock(zzad.class);
final Polygon polygon = spy(new Polygon(z));
final float density = 5;
final float strokeWidth = 3;
final PolygonController controller = new PolygonController(polygon, false, density);
controller.setStrokeWidth(strokeWidth);
Mockito.verify(polygon).setStrokeWidth(density * strokeWidth);
}
}