Revision 12098

View differences:

trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/readers/libGPEReaderTestSuite.java
47 47
 *
48 48
 * $Id$
49 49
 * $Log$
50
 * Revision 1.5  2007-06-08 13:01:12  jorpiell
50
 * Revision 1.6  2007-06-11 06:17:36  jorpiell
51
 * Add a new GML test
52
 *
53
 * Revision 1.5  2007/06/08 13:01:12  jorpiell
51 54
 * Add the targetNamespace to the file
52 55
 *
53 56
 * Revision 1.4  2007/05/16 12:34:55  csanchez
......
76 79
		suite.addTestSuite(GMLPointsReader.class);
77 80
		suite.addTestSuite(GMLEuroroadsReader.class);
78 81
		suite.addTestSuite(GMLNomenclatorIdeeReader.class);
82
		suite.addTestSuite(GMLAforosReader.class);
79 83
		//$JUnit-END$
80 84
		return suite;
81 85
	}
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/readers/GMLAforosReader.java
1
package org.gvsig.gpe.gml.readers;
2

  
3
import org.gvsig.gpe.containers.Layer;
4

  
5
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
6
 *
7
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
8
 *
9
 * This program is free software; you can redistribute it and/or
10
 * modify it under the terms of the GNU General Public License
11
 * as published by the Free Software Foundation; either version 2
12
 * of the License, or (at your option) any later version.
13
 *
14
 * This program is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 * GNU General Public License for more details.
18
 *
19
 * You should have received a copy of the GNU General Public License
20
 * along with this program; if not, write to the Free Software
21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
22
 *
23
 * For more information, contact:
24
 *
25
 *  Generalitat Valenciana
26
 *   Conselleria d'Infraestructures i Transport
27
 *   Av. Blasco Ib??ez, 50
28
 *   46010 VALENCIA
29
 *   SPAIN
30
 *
31
 *      +34 963862235
32
 *   gvsig@gva.es
33
 *      www.gvsig.gva.es
34
 *
35
 *    or
36
 *
37
 *   IVER T.I. S.A
38
 *   Salamanca 50
39
 *   46005 Valencia
40
 *   Spain
41
 *
42
 *   +34 963163400
43
 *   dac@iver.es
44
 */
45
/* CVS MESSAGES:
46
 *
47
 * $Id$
48
 * $Log$
49
 * Revision 1.1  2007-06-11 06:17:36  jorpiell
50
 * Add a new GML test
51
 *
52
 *
53
 */
54
/**
55
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
56
 */
57
public class GMLAforosReader extends GMLReaderBaseTest {
58
	/*
59
	 * (non-Javadoc)
60
	 * @see org.gvsig.gpe.readers.GPEReaderBaseTest#getFile()
61
	 */
62
	public String getFile() {
63
		return "testdata/aforos.gml";
64
	}
65

  
66
	/*
67
	 * (non-Javadoc)
68
	 * @see org.gvsig.gpe.gml.readers.GMLReaderBaseTest#hasSchema()
69
	 */
70
	public boolean hasSchema() {
71
		return false;
72
	}
73

  
74
	/*
75
	 * (non-Javadoc)
76
	 * @see org.gvsig.gpe.readers.GPEReaderBaseTest#makeAsserts()
77
	 */
78
	public void makeAsserts() {
79
		Layer[] layers = getLayers();
80
		assertEquals(layers.length, 1);
81
		Layer layer = layers[0];
82
		assertEquals(layer.getFeatures().size(),85);
83
		
84
	}
85
}
0 86

  

Also available in: Unified diff