/*******************************************************************************
 * Copyright 2014, 2018 gwt-ol3
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/
package ol;

import ol.sphere.Sphere;

/**
 * Test for {@link Sphere}.
 *
 * @author Tino Desjardins
 *
 */
public class SphereTest extends GwtOLBaseTestCase {

    public void testAttribution() {

        injectUrlAndTest(() -> {

            //Sphere sphere = new Sphere(OLUtil.EARTH_RADIUS_NORMAL);

            //assertNotNull(sphere);

        });

    }

}

@@ -772,21 +772,110 @@
  ol.
-sphere.Sphere
+geom.Polygon;%0Aimport ol.proj.Projection;%0Aimport ol.sphere.Sphere;%0Aimport ol.sphere.SphereMetricOptions
 ;%0A%0A/
@@ -1019,19 +1019,14 @@
 test
-Attribution
+Sphere
 () %7B
@@ -1077,101 +1077,954 @@
     
-//Sphere sphere = new Sphere(OLUtil.EARTH_RADIUS_NORMAL);%0A%0A            //assertNotNull(sphere
+Coordinate%5B%5D%5B%5D coordinates = new Coordinate%5B1%5D%5B4%5D;%0A%0A            Coordinate point1 = new Coordinate(13.36, 52.53);%0A            Coordinate point2 = new Coordinate(13.36, 52.51);%0A            Coordinate point3 = new Coordinate(13.37, 52.52);%0A            Coordinate point4 = new Coordinate(13.36, 52.53);%0A%0A            coordinates%5B0%5D%5B0%5D = point1;%0A            coordinates%5B0%5D%5B1%5D = point2;%0A            coordinates%5B0%5D%5B2%5D = point3;%0A            coordinates%5B0%5D%5B3%5D = point4;%0A%0A            SphereMetricOptions sphereMetricOptions = new SphereMetricOptions();%0A            sphereMetricOptions.setProjection(Projection.get(%22EPSG:4326%22));%0A            sphereMetricOptions.setRadius(OLUtil.EARTH_RADIUS_NORMAL);%0A%0A            double area = Sphere.getArea(new Polygon(coordinates), sphereMetricOptions);%0A%0A            assertTrue(area %3E 0);%0A%0A            double distance = Sphere.getDistance(point1, point2, OLUtil.EARTH_RADIUS_NORMAL);%0A%0A            assertTrue(distance %3E 0
 );%0A%0A

Update test for sphere methods