blob: 9e2e9e81b8296efb67206f5bfca236e6a2ddcb9d [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.PolylineOptions;
import org.junit.Test;
public class PolylineBuilderTest {
@Test
public void density_AppliesToStrokeWidth() {
final float density = 5;
final float strokeWidth = 3;
final PolylineBuilder builder = new PolylineBuilder(density);
builder.setWidth(strokeWidth);
final PolylineOptions options = builder.build();
final float width = options.getWidth();
assertEquals(density * strokeWidth, width);
}
}