blob: 269c35ebd86406ebc8c4f5c102f3b1d43dc8e57e [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.CircleOptions;
import org.junit.Test;
public class CircleBuilderTest {
@Test
public void density_AppliesToStrokeWidth() {
final float density = 5;
final float strokeWidth = 3;
final CircleBuilder builder = new CircleBuilder(density);
builder.setStrokeWidth(strokeWidth);
final CircleOptions options = builder.build();
final float width = options.getStrokeWidth();
assertEquals(density * strokeWidth, width);
}
}