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

View differences:

PointTest.java
36 36
import org.gvsig.fmap.geom.GeometryLibrary;
37 37
import org.gvsig.fmap.geom.GeometryLocator;
38 38
import org.gvsig.fmap.geom.GeometryManager;
39
import org.gvsig.fmap.geom.Geometry.SUBTYPES;
40
import org.gvsig.fmap.geom.Geometry.TYPES;
39 41
import org.slf4j.Logger;
40 42
import org.slf4j.LoggerFactory;
41 43

  
......
62 64
	}
63 65
	
64 66
	public void testCreatePoint2D() throws InstantiationException, IllegalAccessException{
65
		Point point = (Point)manager.create(Point2D.CODE);
67
		Point point = (Point)manager.create(TYPES.POINT, SUBTYPES.GEOM2D);
66 68
		point.setCoordinateAt(0, 1.0);
67 69
		point.setCoordinateAt(1, 2.0);
68 70
		
......
87 89
	}
88 90
	
89 91
	public void testCreatePoint2DZ() throws InstantiationException, IllegalAccessException{
90
		Point point = (Point)manager.create(Point2DZ.CODE);
92
		Point point = (Point)manager.create(TYPES.POINT, SUBTYPES.GEOM2DZ);
91 93
		point.setCoordinateAt(0, 1.0);
92 94
		point.setCoordinateAt(1, 2.0);
93 95
		point.setCoordinateAt(2, 3.0);

Also available in: Unified diff