package ol.geom;

import ol.BaseTestCase;
import ol.Coordinate;
import ol.OLFactory;

/**
 * A test case for {@link Circle}.
 *
 * @author Tino Desjardins
 */
public class CircleTest extends BaseTestCase {

    public void test() {

        double radius = 5;
        
        Circle circle = OLFactory.createCircle(OLFactory.createCoordinate(10, 10), radius);
        assertNotNull(circle);
        assertTrue(circle instanceof Geometry);

        Coordinate coordinate = circle.getCenter();
        assertNotNull(coordinate);
        assert(10 == coordinate.getX());
        assert(10 == coordinate.getY());
        
        assert(radius == circle.getRadius());
        
    }

}

@@ -21,27 +21,25 @@
 port ol.
-BaseTestCas
+Coordinat
 e;%0Aimpor
@@ -39,33 +39,41 @@
 ;%0Aimport ol.
-Coordinat
+GwtOL3BaseTestCas
 e;%0Aimport ol
@@ -190,16 +190,22 @@
 extends 
+GwtOL3
 BaseTest
@@ -232,16 +232,22 @@
 oid test
+Circle
 () %7B%0A%0A  
@@ -248,20 +248,107 @@
  %7B%0A%0A    
-    
+%09injectUrlAndTest(new TestWithInjection() %7B%0A%0A%09%09%09@Override%0A%09%09%09public void test() %7B%0A%09%09%09%09%0A%09%09%09%09
 double r
@@ -358,16 +358,18 @@
 us = 5;%0A
+%09%09
         
@@ -361,32 +361,34 @@
 = 5;%0A%09%09        %0A
+%09%09
         Circle c
@@ -463,16 +463,18 @@
 adius);%0A
+%09%09
         
@@ -492,24 +492,26 @@
 ll(circle);%0A
+%09%09
         asse
@@ -547,16 +547,18 @@
 etry);%0A%0A
+%09%09
         
@@ -601,16 +601,18 @@
 nter();%0A
+%09%09
         
@@ -638,16 +638,18 @@
 inate);%0A
+%09%09
         
@@ -677,24 +677,26 @@
 te.getX());%0A
+%09%09
         asse
@@ -720,24 +720,26 @@
 te.getY());%0A
+%09%09
         %0A   
@@ -731,24 +731,26 @@
 %0A%09%09        %0A
+%09%09
         asse
@@ -783,16 +783,36 @@
 ius());%0A
+%0A%09%09%09%7D%7D);  %09%0A        
         

Add test for circle geometry