blob: c781afc0ede9fb6e56706fd60c1f49012a5773bd [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 junit.framework.TestCase.assertEquals;
import com.google.android.gms.maps.model.PolygonOptions;
import org.junit.Test;
public class PolygonBuilderTest {
@Test
public void density_AppliesToStrokeWidth() {
final float density = 5;
final float strokeWidth = 3;
final PolygonBuilder builder = new PolygonBuilder(density);
builder.setStrokeWidth(strokeWidth);
final PolygonOptions options = builder.build();
final float width = options.getStrokeWidth();
assertEquals(density * strokeWidth, width);
}
}