Revision 11299
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/readers/GMLLinesReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.readers; |
|
2 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
3 |
* |
|
4 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
19 |
* |
|
20 |
* For more information, contact: |
|
21 |
* |
|
22 |
* Generalitat Valenciana |
|
23 |
* Conselleria d'Infraestructures i Transport |
|
24 |
* Av. Blasco Ib??ez, 50 |
|
25 |
* 46010 VALENCIA |
|
26 |
* SPAIN |
|
27 |
* |
|
28 |
* +34 963862235 |
|
29 |
* gvsig@gva.es |
|
30 |
* www.gvsig.gva.es |
|
31 |
* |
|
32 |
* or |
|
33 |
* |
|
34 |
* IVER T.I. S.A |
|
35 |
* Salamanca 50 |
|
36 |
* 46005 Valencia |
|
37 |
* Spain |
|
38 |
* |
|
39 |
* +34 963163400 |
|
40 |
* dac@iver.es |
|
41 |
*/ |
|
42 |
/* CVS MESSAGES: |
|
43 |
* |
|
44 |
* $Id$ |
|
45 |
* $Log$ |
|
46 |
* Revision 1.1 2007-04-20 08:33:37 jorpiell |
|
47 |
* Test updated |
|
48 |
* |
|
49 |
* |
|
50 |
*/ |
|
51 |
/** |
|
52 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
53 |
*/ |
|
54 |
public class GMLLinesReader extends GMLReaderBaseTest { |
|
55 |
|
|
56 |
//Aqui se le pasa el fichero a usar por el test |
|
57 |
public String getFile() { |
|
58 |
return "testdata/GML-lines.gml"; |
|
59 |
} |
|
60 |
|
|
61 |
public boolean hasSchema() { |
|
62 |
// TODO Auto-generated method stub |
|
63 |
return false; |
|
64 |
} |
|
65 |
|
|
66 |
public void makeAsserts() { |
|
67 |
// TODO Auto-generated method stub |
|
68 |
|
|
69 |
} |
|
70 |
} |
|
0 | 71 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/readers/GMLReaderBaseTest.java | ||
---|---|---|
48 | 48 |
* |
49 | 49 |
* $Id$ |
50 | 50 |
* $Log$ |
51 |
* Revision 1.3 2007-04-20 08:13:43 csanchez |
|
51 |
* Revision 1.4 2007-04-20 08:33:37 jorpiell |
|
52 |
* Test updated |
|
53 |
* |
|
54 |
* Revision 1.3 2007/04/20 08:13:43 csanchez |
|
52 | 55 |
* Actualizacion protoripo libGPE |
53 | 56 |
* |
54 | 57 |
* Revision 1.2 2007/04/13 07:17:57 jorpiell |
... | ... | |
64 | 67 |
*/ |
65 | 68 |
public abstract class GMLReaderBaseTest extends GPEReaderBaseTest { |
66 | 69 |
|
67 |
public void setUp() throws IllegalArgumentException, SecurityException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException{ |
|
68 |
//Para registrar un driver... necesitamos un nombre una descripci?n |
|
69 |
//y la ruta de la librer?a junto con la clase que la implementa. |
|
70 |
this.setGPEParserName("GMLParser"); |
|
71 |
this.setGPEParserDescription("parser de GML versi?n 2.x"); |
|
72 |
} |
|
73 |
//Comprobaciones de lectura |
|
74 |
public void makeAsserts() { |
|
75 |
// TODO Ap?ndice de m?todo generado autom?ticamente |
|
76 |
} |
|
77 | 70 |
//Aqui se le pasa la clase |
78 | 71 |
public Class getGPEParserClass() { |
79 |
// TODO Ap?ndice de m?todo generado autom?ticamente |
|
80 | 72 |
return org.gvsig.gpe.gml.GPEGmlParser.class; |
81 | 73 |
} |
82 |
//Aqui se le pasa el fichero a usar por el test |
|
83 |
public String getFile() { |
|
84 |
// TODO Ap?ndice de m?todo generado autom?ticamente |
|
85 |
return "testdata/GML-lines.gml"; |
|
86 |
} |
|
74 |
|
|
87 | 75 |
/** |
88 | 76 |
* Return if the GML has a schema |
89 | 77 |
* @return |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/readers/libGPEReaderTestSuite.java | ||
---|---|---|
49 | 49 |
* |
50 | 50 |
* $Id$ |
51 | 51 |
* $Log$ |
52 |
* Revision 1.1 2007-04-20 08:13:43 csanchez |
|
52 |
* Revision 1.2 2007-04-20 08:33:37 jorpiell |
|
53 |
* Test updated |
|
54 |
* |
|
55 |
* Revision 1.1 2007/04/20 08:13:43 csanchez |
|
53 | 56 |
* Actualizacion protoripo libGPE |
54 | 57 |
* |
55 | 58 |
* |
... | ... | |
62 | 65 |
public static Test suite() { |
63 | 66 |
TestSuite suite = new TestSuite("Test for org.gvsig.gpe.gml.readers"); |
64 | 67 |
//$JUnit-BEGIN$ |
65 |
suite.addTestSuite(GMLReaderBaseTest.class);
|
|
68 |
suite.addTestSuite(GMLLinesReader.class);
|
|
66 | 69 |
//$JUnit-END$ |
67 | 70 |
return suite; |
68 | 71 |
} |
Also available in: Unified diff