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