blob: 644e8982f246ffabfb7c9b7259c1261f37a434d1 [file] [log] [blame]
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);
}
}