Revision 26866 branches/v2_0_0_prep/libraries/libFMap_geometries/src-test/org/gvsig/fmap/geom/primitive/EllipseTest.java

View differences:

EllipseTest.java
33 33
import org.gvsig.fmap.geom.GeometryLibrary;
34 34
import org.gvsig.fmap.geom.GeometryLocator;
35 35
import org.gvsig.fmap.geom.GeometryManager;
36
import org.gvsig.fmap.geom.Geometry.SUBTYPES;
37
import org.gvsig.fmap.geom.Geometry.TYPES;
36 38
import org.slf4j.Logger;
37 39
import org.slf4j.LoggerFactory;
38 40

  
......
59 61
	}
60 62
	
61 63
	public void testEllipse2D() throws InstantiationException, IllegalAccessException{
62
		Ellipse ellipse = (Ellipse)manager.create(Ellipse2D.CODE);
64
		Ellipse ellipse = (Ellipse)manager.create(TYPES.ELLIPSE, SUBTYPES.GEOM2D);
63 65
		GeneralPathX generalPathX = new GeneralPathX();
64 66
		Exception e = null;
65 67
		try{
......
69 71
		}
70 72
		Assert.assertTrue(e instanceof UnsupportedOperationException);
71 73
		
72
		Point initPoint = (Point)manager.create(Point2D.CODE);
74
		Point initPoint = (Point)manager.create(TYPES.POINT, SUBTYPES.GEOM2D);
73 75
		initPoint.setCoordinateAt(0, 0);
74 76
		initPoint.setCoordinateAt(1, 0);
75 77
		
76
		Point endPoint = (Point)manager.create(Point2D.CODE);
78
		Point endPoint = (Point)manager.create(TYPES.POINT, SUBTYPES.GEOM2D);
77 79
		endPoint.setCoordinateAt(0, 1);
78 80
		endPoint.setCoordinateAt(1, 1);
79 81
		

Also available in: Unified diff