Revision 19638

View differences:

trunk/libraries/libTopology/src-test/org/gvsig/topology/topologyrules/PolygonMustBeClosedTest.java
48 48
*/
49 49
package org.gvsig.topology.topologyrules;
50 50

  
51
import junit.framework.TestCase;
52

  
51 53
import org.gvsig.topology.util.TestTopologyErrorContainer;
52 54

  
53 55
import com.iver.cit.gvsig.fmap.core.DefaultFeature;
54 56
import com.iver.cit.gvsig.fmap.core.GeneralPathX;
55 57
import com.iver.cit.gvsig.fmap.core.IGeometry;
56 58
import com.iver.cit.gvsig.fmap.core.ShapeFactory;
57
import com.vividsolutions.jts.geom.Geometry;
58 59
import com.vividsolutions.jts.geom.GeometryFactory;
59 60
import com.vividsolutions.jts.geom.PrecisionModel;
60 61
import com.vividsolutions.jts.io.WKTReader;
61 62

  
62
import junit.framework.TestCase;
63

  
64 63
public class PolygonMustBeClosedTest extends TestCase {
65 64
	
66 65
	PrecisionModel pm = new PrecisionModel(10000);
......
70 69
	
71 70
	IGeometry polygon1;
72 71
	
73
	PolygonMustBeClosed rule;
72
	FMapGeometryMustBeClosed rule;
74 73
	
75 74
	public void setUp() throws Exception{
76 75
		super.setUp();
......
92 91
		
93 92
		polygon1 = ShapeFactory.createPolygon2D(gp);
94 93
		
95
		rule = new PolygonMustBeClosed(null, null, 0d);
94
//		rule = new PolygonMustBeClosed(null, null, 0d);
95
		
96
		rule = new FMapGeometryMustBeClosed(null, null, 0d);
96 97
		TestTopologyErrorContainer errorContainer = new TestTopologyErrorContainer();
97 98
		rule.setTopologyErrorContainer(errorContainer);
99
		
100
		
98 101
	}
99 102
	
100 103
	public void tearDown() throws Exception{

Also available in: Unified diff