blob: 834c42766e07c7986dad59bab7a586d219ab18c2 [file] [log] [blame]
package io.flutter.plugins.googlemaps;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.spy;
import com.google.android.gms.internal.maps.zzw;
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 zzw z = mock(zzw.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);
}
}