Revision 264 org.gvsig.gpe/library/trunk/org.gvsig.gpe/org.gvsig.gpe.lib/org.gvsig.gpe.lib.impl/src/test/java/org/gvsig/gpe/lib/impl/writer/GPEWriterBaseTest.java

View differences:

GPEWriterBaseTest.java
10 10

  
11 11
import org.gvsig.gpe.lib.api.GPELocator;
12 12
import org.gvsig.gpe.lib.api.GPEManager;
13
import org.gvsig.gpe.lib.api.parser.IGPEContentHandler;
13
import org.gvsig.gpe.lib.api.parser.IGPEContentHandlerInmGeom;
14 14
import org.gvsig.gpe.lib.api.parser.IGPEErrorHandler;
15 15
import org.gvsig.gpe.lib.api.writer.IGPEWriterHandler;
16 16
import org.gvsig.gpe.lib.impl.containers.Layer;
17
import org.gvsig.gpe.lib.impl.parser.GPEContentHandlerAdapterTest;
17 18
import org.gvsig.gpe.lib.impl.parser.GPEContentHandlerTest;
18 19
import org.gvsig.gpe.lib.impl.parser.GPEErrorHandlerTest;
19 20
import org.gvsig.gpe.lib.spi.GPEProviderLocator;
......
115 116
 */
116 117
public abstract class GPEWriterBaseTest extends AbstractLibraryAutoInitTestCase {
117 118
	private IGPEWriterHandler writerHandler = null;
118
	private IGPEContentHandler contenHandler = null;
119
	private IGPEContentHandlerInmGeom contenHandler = null;
119 120
	private IGPEErrorHandler errorHandler = null;
120 121
	private IGPEParser parser = null;
121 122
	private File outputFile = null;
......
335 336
	/**
336 337
	 * @return the contenHandler
337 338
	 */
338
	public IGPEContentHandler getContenHandler() {
339
	public IGPEContentHandlerInmGeom getContenHandler() {
339 340
		if (contenHandler == null){
340
			contenHandler = new GPEContentHandlerTest();
341
			contenHandler = new GPEContentHandlerAdapterTest(new GPEContentHandlerTest());
341 342
		}
342 343
		return contenHandler;
343 344
	}
......
357 358
	 * @return
358 359
	 */
359 360
	public Layer[] getLayers(){
360
		ArrayList layers = ((GPEContentHandlerTest)parser.getContentHandler()).getLayers();
361
		ArrayList layers = ((GPEContentHandlerAdapterTest)parser.getContentHandler()).getLayers();
361 362
		Layer[] aLayers = new Layer[layers.size()];
362 363
		for (int i=0 ; i<layers.size() ; i++){
363 364
			aLayers[i] = (Layer)layers.get(i);

Also available in: Unified diff