Revision 19580
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/GMLAllTests.java | ||
---|---|---|
3 | 3 |
import junit.framework.Test; |
4 | 4 |
import junit.framework.TestSuite; |
5 | 5 |
|
6 |
import org.gvsig.gpe.gml.readers.GMLReadersTestSuite;
|
|
7 |
import org.gvsig.gpe.gml.writers.GMLWritersTestSuite;
|
|
6 |
import org.gvsig.gpe.gml.parser.GMLReadersTestSuite;
|
|
7 |
import org.gvsig.gpe.gml.writer.GMLWritersTestSuite; |
|
8 | 8 |
|
9 | 9 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
10 | 10 |
* |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLEuroroadsReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
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: GMLEuroroadsReader.java 202 2007-11-27 12:00:11Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.1 2007/06/08 13:01:12 jorpiell |
|
50 |
* Add the targetNamespace to the file |
|
51 |
* |
|
52 |
* |
|
53 |
*/ |
|
54 |
/** |
|
55 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
56 |
*/ |
|
57 |
public class GMLEuroroadsReader extends GMLReaderBaseTest { |
|
58 |
/* |
|
59 |
* (non-Javadoc) |
|
60 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#getFile() |
|
61 |
*/ |
|
62 |
public String getFile() { |
|
63 |
return "testdata/euroroads.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(),10); |
|
83 |
|
|
84 |
} |
|
85 |
} |
|
0 | 86 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLMultiSurfaceReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
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 |
* |
|
47 |
*/ |
|
48 |
/** |
|
49 |
* @author Jorge Piera Llodr? (jorge.piera@iver.es) |
|
50 |
*/ |
|
51 |
public class GMLMultiSurfaceReader extends GMLReaderBaseTest { |
|
52 |
|
|
53 |
//Aqui se le pasa el fichero a usar por el test |
|
54 |
public String getFile() { |
|
55 |
return "testdata/MultiSurface.gml"; |
|
56 |
} |
|
57 |
|
|
58 |
public boolean hasSchema() { |
|
59 |
// TODO Auto-generated method stub |
|
60 |
return false; |
|
61 |
} |
|
62 |
|
|
63 |
public void makeAsserts() { |
|
64 |
// TODO Auto-generated method stub |
|
65 |
|
|
66 |
} |
|
67 |
} |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLCurvesReader.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
* |
|
19 |
* For more information, contact: |
|
20 |
* |
|
21 |
* Generalitat Valenciana |
|
22 |
* Conselleria d'Infraestructures i Transport |
|
23 |
* Av. Blasco Ib??ez, 50 |
|
24 |
* 46010 VALENCIA |
|
25 |
* SPAIN |
|
26 |
* |
|
27 |
* +34 963862235 |
|
28 |
* gvsig@gva.es |
|
29 |
* www.gvsig.gva.es |
|
30 |
* |
|
31 |
* or |
|
32 |
* |
|
33 |
* IVER T.I. S.A |
|
34 |
* Salamanca 50 |
|
35 |
* 46005 Valencia |
|
36 |
* Spain |
|
37 |
* |
|
38 |
* +34 963163400 |
|
39 |
* dac@iver.es |
|
40 |
*/ |
|
41 |
/** |
|
42 |
* @autor Carlos S?nchez Peri??n (csanper) |
|
43 |
**/ |
|
44 |
|
|
45 |
package org.gvsig.gpe.gml.parser; |
|
46 |
|
|
47 |
public class GMLCurvesReader extends GMLReaderBaseTest { |
|
48 |
|
|
49 |
//Aqui se le pasa el fichero a usar por el test |
|
50 |
public String getFile() { |
|
51 |
return "testdata/GML-curves.gml"; |
|
52 |
} |
|
53 |
|
|
54 |
public boolean hasSchema() { |
|
55 |
// TODO Auto-generated method stub |
|
56 |
return false; |
|
57 |
} |
|
58 |
|
|
59 |
public void makeAsserts() { |
|
60 |
// TODO Auto-generated method stub |
|
61 |
|
|
62 |
} |
|
63 |
} |
|
0 | 64 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLSChoolsTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
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 |
* |
|
47 |
*/ |
|
48 |
/** |
|
49 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
50 |
*/ |
|
51 |
public class GMLSChoolsTest extends GMLReaderBaseTest { |
|
52 |
|
|
53 |
//Aqui se le pasa el fichero a usar por el test |
|
54 |
public String getFile() { |
|
55 |
return "testdata/schools.xml"; |
|
56 |
} |
|
57 |
|
|
58 |
/* |
|
59 |
* (non-Javadoc) |
|
60 |
* @see org.gvsig.gpe.gml.readers.GMLReaderBaseTest#hasSchema() |
|
61 |
*/ |
|
62 |
public boolean hasSchema() { |
|
63 |
return true; |
|
64 |
} |
|
65 |
|
|
66 |
/* |
|
67 |
* (non-Javadoc) |
|
68 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#makeAsserts() |
|
69 |
*/ |
|
70 |
public void makeAsserts() { |
|
71 |
// TODO Auto-generated method stub |
|
72 |
|
|
73 |
} |
|
74 |
} |
|
75 |
|
|
0 | 76 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLIDEECosntruccionesReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
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 |
* |
|
50 |
*/ |
|
51 |
/** |
|
52 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
53 |
*/ |
|
54 |
public class GMLIDEECosntruccionesReader extends GMLReaderBaseTest { |
|
55 |
/* |
|
56 |
* (non-Javadoc) |
|
57 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#getFile() |
|
58 |
*/ |
|
59 |
public String getFile() { |
|
60 |
return "testdata/IDEEConstrucciones.gml"; |
|
61 |
} |
|
62 |
|
|
63 |
/* |
|
64 |
* (non-Javadoc) |
|
65 |
* @see org.gvsig.gpe.gml.readers.GMLReaderBaseTest#hasSchema() |
|
66 |
*/ |
|
67 |
public boolean hasSchema() { |
|
68 |
return false; |
|
69 |
} |
|
70 |
|
|
71 |
/* |
|
72 |
* (non-Javadoc) |
|
73 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#makeAsserts() |
|
74 |
*/ |
|
75 |
public void makeAsserts() { |
|
76 |
Layer[] layers = getLayers(); |
|
77 |
assertEquals(layers.length, 1); |
|
78 |
Layer layer = layers[0]; |
|
79 |
assertEquals(layer.getFeatures().size(),1); |
|
80 |
|
|
81 |
} |
|
82 |
} |
|
0 | 83 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLNomenclatorIdeeReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
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: GMLNomenclatorIdeeReader.java 147 2007-06-08 13:01:44Z jorpiell $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.1 2007/06/08 13:01:12 jorpiell |
|
50 |
* Add the targetNamespace to the file |
|
51 |
* |
|
52 |
* |
|
53 |
*/ |
|
54 |
/** |
|
55 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
56 |
*/ |
|
57 |
public class GMLNomenclatorIdeeReader extends GMLReaderBaseTest { |
|
58 |
/* |
|
59 |
* (non-Javadoc) |
|
60 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#getFile() |
|
61 |
*/ |
|
62 |
public String getFile() { |
|
63 |
return "testdata/GMLNomenclatorIdee.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(),1); |
|
83 |
|
|
84 |
} |
|
85 |
|
|
86 |
} |
|
0 | 87 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLSFP0Reader.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
* |
|
19 |
* For more information, contact: |
|
20 |
* |
|
21 |
* Generalitat Valenciana |
|
22 |
* Conselleria d'Infraestructures i Transport |
|
23 |
* Av. Blasco Ib??ez, 50 |
|
24 |
* 46010 VALENCIA |
|
25 |
* SPAIN |
|
26 |
* |
|
27 |
* +34 963862235 |
|
28 |
* gvsig@gva.es |
|
29 |
* www.gvsig.gva.es |
|
30 |
* |
|
31 |
* or |
|
32 |
* |
|
33 |
* IVER T.I. S.A |
|
34 |
* Salamanca 50 |
|
35 |
* 46005 Valencia |
|
36 |
* Spain |
|
37 |
* |
|
38 |
* +34 963163400 |
|
39 |
* dac@iver.es |
|
40 |
*/ |
|
41 |
/** |
|
42 |
* @autor Carlos S?nchez Peri??n (csanper) |
|
43 |
**/ |
|
44 |
package org.gvsig.gpe.gml.parser; |
|
45 |
|
|
46 |
public class GMLSFP0Reader extends GMLReaderBaseTest{ |
|
47 |
//Aqui se le pasa el fichero a usar por el test |
|
48 |
public String getFile() { |
|
49 |
return "testdata/EjemploSPF0.xml"; |
|
50 |
} |
|
51 |
|
|
52 |
public boolean hasSchema() { |
|
53 |
// TODO Auto-generated method stub |
|
54 |
return false; |
|
55 |
} |
|
56 |
|
|
57 |
public void makeAsserts() { |
|
58 |
// TODO Auto-generated method stub |
|
59 |
|
|
60 |
} |
|
61 |
|
|
62 |
} |
|
0 | 63 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLAforosReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
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: GMLAforosReader.java 148 2007-06-11 06:17:36Z jorpiell $ |
|
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 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLLinesReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
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: GMLLinesReader.java 73 2007-04-20 08:33:37Z jorpiell $ |
|
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/parser/GMLReaderBaseTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
2 |
|
|
3 |
import org.gvsig.gpe.readers.GPEReaderBaseTest; |
|
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: GMLReaderBaseTest.java 202 2007-11-27 12:00:11Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.5 2007/05/18 10:41:01 csanchez |
|
50 |
* Actualización libGPE-GML eliminación de clases inecesarias |
|
51 |
* |
|
52 |
* Revision 1.4 2007/04/20 08:33:37 jorpiell |
|
53 |
* Test updated |
|
54 |
* |
|
55 |
* Revision 1.3 2007/04/20 08:13:43 csanchez |
|
56 |
* Actualizacion protoripo libGPE |
|
57 |
* |
|
58 |
* Revision 1.2 2007/04/13 07:17:57 jorpiell |
|
59 |
* Add the writting tests for the simple geometries |
|
60 |
* |
|
61 |
* Revision 1.1 2007/04/12 10:24:12 jorpiell |
|
62 |
* Add the GML and schema tests |
|
63 |
* |
|
64 |
* |
|
65 |
*/ |
|
66 |
/** |
|
67 |
* @author Carlos S?nchez Peri??n (sanchez_carper@gva.es) |
|
68 |
*/ |
|
69 |
public abstract class GMLReaderBaseTest extends GPEReaderBaseTest { |
|
70 |
|
|
71 |
//Aqui se le pasa la clase |
|
72 |
public Class getGPEParserClass() { |
|
73 |
return org.gvsig.gpe.gml.parser.GPEGmlSFP0Parser.class; |
|
74 |
} |
|
75 |
|
|
76 |
/** |
|
77 |
* Return if the GML has a schema |
|
78 |
* @return |
|
79 |
*/ |
|
80 |
public abstract boolean hasSchema(); |
|
81 |
|
|
82 |
} |
|
0 | 83 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GML3PuntosReader.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
* |
|
19 |
* For more information, contact: |
|
20 |
* |
|
21 |
* Generalitat Valenciana |
|
22 |
* Conselleria d'Infraestructures i Transport |
|
23 |
* Av. Blasco Ib??ez, 50 |
|
24 |
* 46010 VALENCIA |
|
25 |
* SPAIN |
|
26 |
* |
|
27 |
* +34 963862235 |
|
28 |
* gvsig@gva.es |
|
29 |
* www.gvsig.gva.es |
|
30 |
* |
|
31 |
* or |
|
32 |
* |
|
33 |
* IVER T.I. S.A |
|
34 |
* Salamanca 50 |
|
35 |
* 46005 Valencia |
|
36 |
* Spain |
|
37 |
* |
|
38 |
* +34 963163400 |
|
39 |
* dac@iver.es |
|
40 |
*/ |
|
41 |
/** |
|
42 |
* @autor Carlos S?nchez Peri??n (csanper) |
|
43 |
**/ |
|
44 |
package org.gvsig.gpe.gml.parser; |
|
45 |
|
|
46 |
public class GML3PuntosReader extends GMLReaderBaseTest{ |
|
47 |
//Aqui se le pasa el fichero a usar por el test |
|
48 |
public String getFile() { |
|
49 |
return "testdata/EjemploPuntosGML3.xml"; |
|
50 |
} |
|
51 |
|
|
52 |
public boolean hasSchema() { |
|
53 |
// TODO Auto-generated method stub |
|
54 |
return false; |
|
55 |
} |
|
56 |
|
|
57 |
public void makeAsserts() { |
|
58 |
// TODO Auto-generated method stub |
|
59 |
|
|
60 |
} |
|
61 |
|
|
62 |
} |
|
0 | 63 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLPointsReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
2 |
|
|
3 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
4 |
* |
|
5 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
6 |
* |
|
7 |
* This program is free software; you can redistribute it and/or |
|
8 |
* modify it under the terms of the GNU General Public License |
|
9 |
* as published by the Free Software Foundation; either version 2 |
|
10 |
* of the License, or (at your option) any later version. |
|
11 |
* |
|
12 |
* This program is distributed in the hope that it will be useful, |
|
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
* GNU General Public License for more details. |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License |
|
18 |
* along with this program; if not, write to the Free Software |
|
19 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
20 |
* |
|
21 |
* For more information, contact: |
|
22 |
* |
|
23 |
* Generalitat Valenciana |
|
24 |
* Conselleria d'Infraestructures i Transport |
|
25 |
* Av. Blasco Ib??ez, 50 |
|
26 |
* 46010 VALENCIA |
|
27 |
* SPAIN |
|
28 |
* |
|
29 |
* +34 963862235 |
|
30 |
* gvsig@gva.es |
|
31 |
* www.gvsig.gva.es |
|
32 |
* |
|
33 |
* or |
|
34 |
* |
|
35 |
* IVER T.I. S.A |
|
36 |
* Salamanca 50 |
|
37 |
* 46005 Valencia |
|
38 |
* Spain |
|
39 |
* |
|
40 |
* +34 963163400 |
|
41 |
* dac@iver.es |
|
42 |
*/ |
|
43 |
/* CVS MESSAGES: |
|
44 |
* |
|
45 |
* $Id: GMLPointsReader.java 76 2007-04-25 11:08:38Z csanchez $ |
|
46 |
* $Log$ |
|
47 |
* Revision 1.1 2007/04/25 11:08:38 csanchez |
|
48 |
* Parseo correcto con XSOM de esquemas, EntityResolver para los imports |
|
49 |
* |
|
50 |
* |
|
51 |
*/ |
|
52 |
/** |
|
53 |
* @author Carlos S?nchez Peri??n (sanchez_carper@gva.es) |
|
54 |
*/ |
|
55 |
public class GMLPointsReader extends GMLReaderBaseTest { |
|
56 |
|
|
57 |
//Aqui se le pasa el fichero a usar por el test |
|
58 |
public String getFile() { |
|
59 |
return "testdata/GML-points.gml"; |
|
60 |
} |
|
61 |
|
|
62 |
public boolean hasSchema() { |
|
63 |
// TODO Auto-generated method stub |
|
64 |
return false; |
|
65 |
} |
|
66 |
|
|
67 |
public void makeAsserts() { |
|
68 |
// TODO Auto-generated method stub |
|
69 |
|
|
70 |
} |
|
71 |
} |
|
0 | 72 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLReadersTestSuite.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
2 |
|
|
3 |
import junit.framework.Test; |
|
4 |
import junit.framework.TestSuite; |
|
5 |
|
|
6 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
7 |
* |
|
8 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
9 |
* |
|
10 |
* This program is free software; you can redistribute it and/or |
|
11 |
* modify it under the terms of the GNU General Public License |
|
12 |
* as published by the Free Software Foundation; either version 2 |
|
13 |
* of the License, or (at your option) any later version. |
|
14 |
* |
|
15 |
* This program is distributed in the hope that it will be useful, |
|
16 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
* GNU General Public License for more details. |
|
19 |
* |
|
20 |
* You should have received a copy of the GNU General Public License |
|
21 |
* along with this program; if not, write to the Free Software |
|
22 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
23 |
* |
|
24 |
* For more information, contact: |
|
25 |
* |
|
26 |
* Generalitat Valenciana |
|
27 |
* Conselleria d'Infraestructures i Transport |
|
28 |
* Av. Blasco Ib??ez, 50 |
|
29 |
* 46010 VALENCIA |
|
30 |
* SPAIN |
|
31 |
* |
|
32 |
* +34 963862235 |
|
33 |
* gvsig@gva.es |
|
34 |
* www.gvsig.gva.es |
|
35 |
* |
|
36 |
* or |
|
37 |
* |
|
38 |
* IVER T.I. S.A |
|
39 |
* Salamanca 50 |
|
40 |
* 46005 Valencia |
|
41 |
* Spain |
|
42 |
* |
|
43 |
* +34 963163400 |
|
44 |
* dac@iver.es |
|
45 |
*/ |
|
46 |
/* CVS MESSAGES: |
|
47 |
* |
|
48 |
* $Id: GMLReadersTestSuite.java 346 2008-01-08 15:35:58Z jpiera $ |
|
49 |
* $Log$ |
|
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 |
|
54 |
* Add the targetNamespace to the file |
|
55 |
* |
|
56 |
* Revision 1.4 2007/05/16 12:34:55 csanchez |
|
57 |
* GPEParser Prototipo final de lectura |
|
58 |
* |
|
59 |
* Revision 1.3 2007/04/25 11:08:38 csanchez |
|
60 |
* Parseo correcto con XSOM de esquemas, EntityResolver para los imports |
|
61 |
* |
|
62 |
* Revision 1.2 2007/04/20 08:33:37 jorpiell |
|
63 |
* Test updated |
|
64 |
* |
|
65 |
* Revision 1.1 2007/04/20 08:13:43 csanchez |
|
66 |
* Actualizacion protoripo libGPE |
|
67 |
* |
|
68 |
* |
|
69 |
*/ |
|
70 |
/** |
|
71 |
* @author Carlos S?nchez Peri??n (sanchez_carper@gva.es) |
|
72 |
*/ |
|
73 |
public class GMLReadersTestSuite { |
|
74 |
|
|
75 |
public static Test suite() { |
|
76 |
TestSuite suite = new TestSuite("Test for org.gvsig.gpe.gml.readers"); |
|
77 |
//$JUnit-BEGIN$ |
|
78 |
suite.addTestSuite(GMLLinesReader.class); |
|
79 |
suite.addTestSuite(GMLPointsReader.class); |
|
80 |
suite.addTestSuite(GMLEuroroadsReader.class); |
|
81 |
suite.addTestSuite(GMLNomenclatorIdeeReader.class); |
|
82 |
suite.addTestSuite(GMLAforosReader.class); |
|
83 |
suite.addTestSuite(GMLEuroroadsReader.class); |
|
84 |
suite.addTestSuite(GMLCurvesReader.class); |
|
85 |
suite.addTestSuite(GMLIDEECosntruccionesReader.class); |
|
86 |
suite.addTestSuite(GMLfromSHPReader.class); |
|
87 |
suite.addTestSuite(GMLCitiesReader.class); |
|
88 |
suite.addTestSuite(GMLMultiSurfaceReader.class); |
|
89 |
//$JUnit-END$ |
|
90 |
return suite; |
|
91 |
} |
|
92 |
|
|
93 |
} |
|
0 | 94 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLfromSHPReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
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 |
* |
|
50 |
*/ |
|
51 |
/** |
|
52 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
53 |
*/ |
|
54 |
public class GMLfromSHPReader extends GMLReaderBaseTest { |
|
55 |
/* |
|
56 |
* (non-Javadoc) |
|
57 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#getFile() |
|
58 |
*/ |
|
59 |
public String getFile() { |
|
60 |
return "testdata/fromSHP.gml"; |
|
61 |
} |
|
62 |
|
|
63 |
/* |
|
64 |
* (non-Javadoc) |
|
65 |
* @see org.gvsig.gpe.gml.readers.GMLReaderBaseTest#hasSchema() |
|
66 |
*/ |
|
67 |
public boolean hasSchema() { |
|
68 |
return false; |
|
69 |
} |
|
70 |
|
|
71 |
/* |
|
72 |
* (non-Javadoc) |
|
73 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#makeAsserts() |
|
74 |
*/ |
|
75 |
public void makeAsserts() { |
|
76 |
Layer[] layers = getLayers(); |
|
77 |
assertEquals(layers.length, 1); |
|
78 |
Layer layer = layers[0]; |
|
79 |
assertEquals(layer.getFeatures().size(),2643); |
|
80 |
|
|
81 |
} |
|
82 |
} |
|
0 | 83 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLCitiesReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
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 |
* |
|
47 |
*/ |
|
48 |
/** |
|
49 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
50 |
*/ |
|
51 |
public class GMLCitiesReader extends GMLReaderBaseTest { |
|
52 |
|
|
53 |
//Aqui se le pasa el fichero a usar por el test |
|
54 |
public String getFile() { |
|
55 |
return "testdata/cities.gml"; |
|
56 |
} |
|
57 |
|
|
58 |
public boolean hasSchema() { |
|
59 |
// TODO Auto-generated method stub |
|
60 |
return false; |
|
61 |
} |
|
62 |
|
|
63 |
public void makeAsserts() { |
|
64 |
// TODO Auto-generated method stub |
|
65 |
|
|
66 |
} |
|
67 |
} |
|
68 |
|
|
0 | 69 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/writer/v2/GMLFeatureWithComplexElementTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.writer.v2; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPEFeatureWithComplexElementTest; |
|
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: GMLFeatureWithComplexElementTest.java 352 2008-01-09 13:51:51Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.2 2007/06/29 12:19:34 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.1 2007/05/14 11:40:27 jorpiell |
|
53 |
* Add the writting tests |
|
54 |
* |
|
55 |
* |
|
56 |
*/ |
|
57 |
/** |
|
58 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
59 |
*/ |
|
60 |
public class GMLFeatureWithComplexElementTest extends |
|
61 |
GPEFeatureWithComplexElementTest { |
|
62 |
|
|
63 |
/* |
|
64 |
* (non-Javadoc) |
|
65 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass() |
|
66 |
*/ |
|
67 |
public Class getGPEParserClass() { |
|
68 |
return org.gvsig.gpe.gml.parser.GPEGml2Parser.class; |
|
69 |
} |
|
70 |
|
|
71 |
/* |
|
72 |
* (non-Javadoc) |
|
73 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass() |
|
74 |
*/ |
|
75 |
public Class getGPEWriterHandlerClass() { |
|
76 |
return org.gvsig.gpe.gml.writer.GPEGmlv2WriterHandlerImplementor.class; |
|
77 |
} |
|
78 |
|
|
79 |
|
|
80 |
} |
|
0 | 81 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/writer/v2/GMLEmptyLayerTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.writer.v2; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPEEmptyLayerTest; |
|
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: GMLEmptyLayerTest.java 352 2008-01-09 13:51:51Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.2 2007/06/29 12:19:34 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.1 2007/05/14 11:40:27 jorpiell |
|
53 |
* Add the writting tests |
|
54 |
* |
|
55 |
* |
|
56 |
*/ |
|
57 |
/** |
|
58 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
59 |
*/ |
|
60 |
public class GMLEmptyLayerTest extends GPEEmptyLayerTest { |
|
61 |
/* |
|
62 |
* (non-Javadoc) |
|
63 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass() |
|
64 |
*/ |
|
65 |
public Class getGPEParserClass() { |
|
66 |
return org.gvsig.gpe.gml.parser.GPEGml2Parser.class; |
|
67 |
} |
|
68 |
|
|
69 |
/* |
|
70 |
* (non-Javadoc) |
|
71 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass() |
|
72 |
*/ |
|
73 |
public Class getGPEWriterHandlerClass() { |
|
74 |
return org.gvsig.gpe.gml.writer.GPEGmlv2WriterHandlerImplementor.class; |
|
75 |
} |
|
76 |
|
|
77 |
} |
|
0 | 78 |
trunk/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/writer/v2/GMLMultiPolygonLayerTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.writer.v2; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPEMultiPolygonLayerTest; |
|
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 |
Also available in: Unified diff