Revision 18607

View differences:

trunk/libraries/libGPE-KML/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>libGPE-KML</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
		<buildCommand>
9
			<name>org.eclipse.jdt.core.javabuilder</name>
10
			<arguments>
11
			</arguments>
12
		</buildCommand>
13
		<buildCommand>
14
			<name>de.loskutov.FileSync.FSBuilder</name>
15
			<arguments>
16
			</arguments>
17
		</buildCommand>
18
	</buildSpec>
19
	<natures>
20
		<nature>org.eclipse.jdt.core.javanature</nature>
21
	</natures>
22
</projectDescription>
0 23

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/AllKMLTests.java
1
package org.gvsig.gpe.kml;
2

  
3
import junit.framework.Test;
4
import junit.framework.TestSuite;
5

  
6
import org.gvsig.gpe.kml.readers.v21.kml.KMLReaderTestSuite;
7
import org.gvsig.gpe.kml.readers.v21.kmz.KMZReaderTestSuite;
8
import org.gvsig.gpe.kml.writers.v21.kml.KMLWriterTestSuite;
9
import org.gvsig.gpe.kml.writers.v21.kmz.KMZWriterTestSuite;
10

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

  
65
	public static Test suite() {
66
		TestSuite suite = new TestSuite("Test for org.gvsig.gpe.kml");
67
		//$JUnit-BEGIN$
68
		suite.addTest(KMLReaderTestSuite.suite());
69
		suite.addTest(KMLWriterTestSuite.suite());
70
		suite.addTest(KMZReaderTestSuite.suite());
71
		suite.addTest(KMZWriterTestSuite.suite());
72
		//$JUnit-END$
73
		return suite;
74
	}
75

  
76
}
0 77

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLPolygonWithInnerTest.java
1
package org.gvsig.gpe.kml.writers.v21.kml;
2

  
3
import org.gvsig.gpe.writers.GPEPolygonWithInnerTest;
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: KMLPolygonWithInnerTest.java 361 2008-01-10 08:41:21Z jpiera $
48
 * $Log$
49
 * Revision 1.2  2007/06/29 12:19:48  jorpiell
50
 * The schema validation is made independently of the concrete writer
51
 *
52
 * Revision 1.1  2007/05/02 11:46:50  jorpiell
53
 * Writing tests updated
54
 *
55
 *
56
 */
57
/**
58
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
59
 */
60
public class KMLPolygonWithInnerTest extends GPEPolygonWithInnerTest {
61

  
62
	/*
63
	 * (non-Javadoc)
64
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass()
65
	 */
66
	public Class getGPEParserClass() {
67
		return org.gvsig.gpe.kml.GPEKmlv21Parser.class;
68
	}
69

  
70
	/*
71
	 * (non-Javadoc)
72
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass()
73
	 */
74
	public Class getGPEWriterHandlerClass() {
75
		return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class;
76
	}	
77
	
78
}
0 79

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLLayerWithChildrenTest.java
1
package org.gvsig.gpe.kml.writers.v21.kml;
2

  
3
import org.gvsig.gpe.writers.GPELayerWithChildrenTest;
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: KMLLayerWithChildrenTest.java 361 2008-01-10 08:41:21Z jpiera $
48
 * $Log$
49
 * Revision 1.2  2007/06/29 12:19:48  jorpiell
50
 * The schema validation is made independently of the concrete writer
51
 *
52
 * Revision 1.1  2007/05/02 11:46:50  jorpiell
53
 * Writing tests updated
54
 *
55
 *
56
 */
57
/**
58
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
59
 */
60
public class KMLLayerWithChildrenTest extends GPELayerWithChildrenTest {
61
	/*
62
	 * (non-Javadoc)
63
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass()
64
	 */
65
	public Class getGPEParserClass() {
66
		return org.gvsig.gpe.kml.GPEKmlv21Parser.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.kml.writer.GPEKml21WriterHandlerImplementor.class;
75
	}	
76
	
77
}
0 78

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLLayerWithBboxTest.java
1
package org.gvsig.gpe.kml.writers.v21.kml;
2

  
3
import org.gvsig.gpe.writers.GPELayerWithBboxTest;
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: KMLLayerWithBboxTest.java 361 2008-01-10 08:41:21Z jpiera $
48
 * $Log$
49
 * Revision 1.3  2007/06/29 12:19:48  jorpiell
50
 * The schema validation is made independently of the concrete writer
51
 *
52
 * Revision 1.2  2007/06/07 14:53:59  jorpiell
53
 * Add the schema support
54
 *
55
 * Revision 1.1  2007/05/09 08:36:24  jorpiell
56
 * Add the bbox to the layer
57
 *
58
 *
59
 */
60
/**
61
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
62
 */
63
public class KMLLayerWithBboxTest extends GPELayerWithBboxTest {
64
	
65
	/*
66
	 * (non-Javadoc)
67
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass()
68
	 */
69
	public Class getGPEParserClass() {
70
		return org.gvsig.gpe.kml.GPEKmlv21Parser.class;
71
	}
72

  
73
	/*
74
	 * (non-Javadoc)
75
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass()
76
	 */
77
	public Class getGPEWriterHandlerClass() {
78
		return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class;
79
	}		
80
}
0 81

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLFeatureWithElementsTest.java
1
package org.gvsig.gpe.kml.writers.v21.kml;
2

  
3
import org.gvsig.gpe.writers.GPEFeatureWithElementsTest;
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: KMLFeatureWithElementsTest.java 361 2008-01-10 08:41:21Z jpiera $
48
 * $Log$
49
 * Revision 1.2  2007/06/29 12:19:48  jorpiell
50
 * The schema validation is made independently of the concrete writer
51
 *
52
 * Revision 1.1  2007/05/16 15:54:36  jorpiell
53
 * Add elements support
54
 *
55
 *
56
 */
57
/**
58
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
59
 */
60
public class KMLFeatureWithElementsTest extends GPEFeatureWithElementsTest {
61
	/*
62
	 * (non-Javadoc)
63
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass()
64
	 */
65
	public Class getGPEParserClass() {
66
		return org.gvsig.gpe.kml.GPEKmlv21Parser.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.kml.writer.GPEKml21WriterHandlerImplementor.class;
75
	}	
76
	
77
}
0 78

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLPolygonLayerTest.java
1
package org.gvsig.gpe.kml.writers.v21.kml;
2

  
3
import org.gvsig.gpe.writers.GPEPolygonsLayerTest;
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: KMLPolygonLayerTest.java 361 2008-01-10 08:41:21Z jpiera $
48
 * $Log$
49
 * Revision 1.3  2007/06/29 12:19:48  jorpiell
50
 * The schema validation is made independently of the concrete writer
51
 *
52
 * Revision 1.2  2007/06/07 14:53:59  jorpiell
53
 * Add the schema support
54
 *
55
 * Revision 1.1  2007/05/02 11:46:50  jorpiell
56
 * Writing tests updated
57
 *
58
 * Revision 1.2  2007/04/20 08:38:59  jorpiell
59
 * Tests updating
60
 *
61
 * Revision 1.1  2007/04/14 16:08:07  jorpiell
62
 * Kml writing support added
63
 *
64
 * Revision 1.1  2007/04/13 07:17:57  jorpiell
65
 * Add the writting tests for the simple geometries
66
 *
67
 *
68
 */
69
/**
70
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
71
 */
72
public class KMLPolygonLayerTest extends GPEPolygonsLayerTest{
73
	/*
74
	 * (non-Javadoc)
75
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass()
76
	 */
77
	public Class getGPEParserClass() {
78
		return org.gvsig.gpe.kml.GPEKmlv21Parser.class;
79
	}
80

  
81
	/*
82
	 * (non-Javadoc)
83
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass()
84
	 */
85
	public Class getGPEWriterHandlerClass() {
86
		return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class;
87
	}		
88
	
89
}
0 90

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLLayerWithIdTest.java
1
package org.gvsig.gpe.kml.writers.v21.kml;
2

  
3
import org.gvsig.gpe.writers.GPEFeatureWithIdTest;
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: KMLLayerWithIdTest.java 361 2008-01-10 08:41:21Z jpiera $
48
 * $Log$
49
 * Revision 1.2  2007/06/29 12:19:48  jorpiell
50
 * The schema validation is made independently of the concrete writer
51
 *
52
 * Revision 1.1  2007/05/02 11:46:50  jorpiell
53
 * Writing tests updated
54
 *
55
 *
56
 */
57
/**
58
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
59
 */
60
public class KMLLayerWithIdTest extends GPEFeatureWithIdTest {
61

  
62
	/*
63
	 * (non-Javadoc)
64
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass()
65
	 */
66
	public Class getGPEParserClass() {
67
		return org.gvsig.gpe.kml.GPEKmlv21Parser.class;
68
	}
69

  
70
	/*
71
	 * (non-Javadoc)
72
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass()
73
	 */
74
	public Class getGPEWriterHandlerClass() {
75
		return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class;
76
	}	
77
	
78
}
0 79

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLWriterTestSuite.java
1
package org.gvsig.gpe.kml.writers.v21.kml;
2

  
3
import junit.framework.Test;
4
import junit.framework.TestSuite;
5

  
6
import org.gvsig.gpe.kml.writers.v21.kml.warnings.KMLNotMultiPointSupported;
7
import org.gvsig.gpe.kml.writers.v21.kml.warnings.KMLPolygonAutomaticallyClosedTest;
8

  
9
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
10
 *
11
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
12
 *
13
 * This program is free software; you can redistribute it and/or
14
 * modify it under the terms of the GNU General Public License
15
 * as published by the Free Software Foundation; either version 2
16
 * of the License, or (at your option) any later version.
17
 *
18
 * This program is distributed in the hope that it will be useful,
19
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
 * GNU General Public License for more details.
22
 *
23
 * You should have received a copy of the GNU General Public License
24
 * along with this program; if not, write to the Free Software
25
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
26
 *
27
 * For more information, contact:
28
 *
29
 *  Generalitat Valenciana
30
 *   Conselleria d'Infraestructures i Transport
31
 *   Av. Blasco Ib??ez, 50
32
 *   46010 VALENCIA
33
 *   SPAIN
34
 *
35
 *      +34 963862235
36
 *   gvsig@gva.es
37
 *      www.gvsig.gva.es
38
 *
39
 *    or
40
 *
41
 *   IVER T.I. S.A
42
 *   Salamanca 50
43
 *   46005 Valencia
44
 *   Spain
45
 *
46
 *   +34 963163400
47
 *   dac@iver.es
48
 */
49
/* CVS MESSAGES:
50
 *
51
 * $Id: KMLWriterTestSuite.java 358 2008-01-09 17:50:58Z jpiera $
52
 * $Log$
53
 * Revision 1.5  2007/05/16 15:54:36  jorpiell
54
 * Add elements support
55
 *
56
 * Revision 1.4  2007/05/16 12:08:14  jorpiell
57
 * A multipoint layer is not supported
58
 *
59
 * Revision 1.3  2007/05/16 09:30:09  jorpiell
60
 * the writting methods has to have the errorHandler argument
61
 *
62
 * Revision 1.2  2007/05/09 08:36:24  jorpiell
63
 * Add the bbox to the layer
64
 *
65
 * Revision 1.1  2007/05/02 11:46:50  jorpiell
66
 * Writing tests updated
67
 *
68
 *
69
 */
70
/**
71
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
72
 */
73
public class KMLWriterTestSuite {
74

  
75
	public static Test suite() {
76
		TestSuite suite = new TestSuite(
77
				"Test for org.gvsig.gpe.kml.writers.kml");
78
		//$JUnit-BEGIN$
79
		suite.addTestSuite(KMLPolygonWithInnerTest.class);
80
		suite.addTestSuite(KMLLayerWithChildrenTest.class);
81
		suite.addTestSuite(KMLFeatureWithNameTest.class);
82
		suite.addTestSuite(KMLGeometryWithIdTest.class);
83
		suite.addTestSuite(KMLEmptyLayerTest.class);
84
		suite.addTestSuite(KMLLayerWithIdTest.class);
85
		suite.addTestSuite(KMLPointsLayerTest.class);
86
		suite.addTestSuite(KMLFeatureWithIdTest.class);
87
		suite.addTestSuite(KMLLayerWithDescriptionTest.class);
88
		suite.addTestSuite(KMLMultiGeometryLayerTest.class);
89
		suite.addTestSuite(KMLLayerWithNameTest.class);
90
		suite.addTestSuite(KMLLineStringLayerTest.class);
91
		suite.addTestSuite(KMLPolygonLayerTest.class);
92
		suite.addTestSuite(KMLLayerWithBboxTest.class);
93
		suite.addTestSuite(KMLPolygonAutomaticallyClosedTest.class);
94
		suite.addTestSuite(KMLNotMultiPointSupported.class);
95
		suite.addTestSuite(KMLFeatureWithElementsTest.class);
96
		suite.addTestSuite(KMLFeatureWithComplexElementTest.class);
97
		//$JUnit-END$
98
		return suite;
99
	}
100

  
101
}
0 102

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLFeatureWithNameTest.java
1
package org.gvsig.gpe.kml.writers.v21.kml;
2

  
3
import org.gvsig.gpe.writers.GPEFeatureWithNameTest;
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: KMLFeatureWithNameTest.java 361 2008-01-10 08:41:21Z jpiera $
48
 * $Log$
49
 * Revision 1.2  2007/06/29 12:19:48  jorpiell
50
 * The schema validation is made independently of the concrete writer
51
 *
52
 * Revision 1.1  2007/05/02 11:46:50  jorpiell
53
 * Writing tests updated
54
 *
55
 *
56
 */
57
/**
58
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
59
 */
60
public class KMLFeatureWithNameTest extends GPEFeatureWithNameTest {
61

  
62
	/*
63
	 * (non-Javadoc)
64
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass()
65
	 */
66
	public Class getGPEParserClass() {
67
		return org.gvsig.gpe.kml.GPEKmlv21Parser.class;
68
	}
69

  
70
	/*
71
	 * (non-Javadoc)
72
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass()
73
	 */
74
	public Class getGPEWriterHandlerClass() {
75
		return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class;
76
	}	
77
	
78
}
0 79

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLFeatureWithComplexElementTest.java
1
package org.gvsig.gpe.kml.writers.v21.kml;
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: KMLFeatureWithComplexElementTest.java 361 2008-01-10 08:41:21Z jpiera $
48
 * $Log$
49
 * Revision 1.2  2007/06/29 12:19:48  jorpiell
50
 * The schema validation is made independently of the concrete writer
51
 *
52
 * Revision 1.1  2007/05/16 15:54:36  jorpiell
53
 * Add elements support
54
 *
55
 *
56
 */
57
/**
58
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
59
 */
60
public class KMLFeatureWithComplexElementTest extends
61
		GPEFeatureWithComplexElementTest {
62
	/*
63
	 * (non-Javadoc)
64
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass()
65
	 */
66
	public Class getGPEParserClass() {
67
		return org.gvsig.gpe.kml.GPEKmlv21Parser.class;
68
	}
69

  
70
	/*
71
	 * (non-Javadoc)
72
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass()
73
	 */
74
	public Class getGPEWriterHandlerClass() {
75
		return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class;
76
	}
77
}
0 78

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLEmptyLayerTest.java
1
package org.gvsig.gpe.kml.writers.v21.kml;
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: KMLEmptyLayerTest.java 361 2008-01-10 08:41:21Z jpiera $
48
 * $Log$
49
 * Revision 1.3  2007/06/29 12:19:48  jorpiell
50
 * The schema validation is made independently of the concrete writer
51
 *
52
 * Revision 1.2  2007/06/07 14:53:59  jorpiell
53
 * Add the schema support
54
 *
55
 * Revision 1.1  2007/05/02 11:46:50  jorpiell
56
 * Writing tests updated
57
 *
58
 * Revision 1.2  2007/04/20 08:38:59  jorpiell
59
 * Tests updating
60
 *
61
 * Revision 1.1  2007/04/14 16:08:07  jorpiell
62
 * Kml writing support added
63
 *
64
 * Revision 1.1  2007/04/13 07:17:57  jorpiell
65
 * Add the writting tests for the simple geometries
66
 *
67
 * Revision 1.1  2007/04/12 17:06:44  jorpiell
68
 * First GML writing tests
69
 *
70
 *
71
 */
72
/**
73
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
74
 */
75
public class KMLEmptyLayerTest extends GPEEmptyLayerTest {
76
	/*
77
	 * (non-Javadoc)
78
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass()
79
	 */
80
	public Class getGPEParserClass() {
81
		return org.gvsig.gpe.kml.GPEKmlv21Parser.class;
82
	}
83

  
84
	/*
85
	 * (non-Javadoc)
86
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass()
87
	 */
88
	public Class getGPEWriterHandlerClass() {
89
		return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class;
90
	}	
91
	
92
}
0 93

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLMultiGeometryLayerTest.java
1
package org.gvsig.gpe.kml.writers.v21.kml;
2

  
3
import org.gvsig.gpe.writers.GPEMultiGeometryLayerTest;
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: KMLMultiGeometryLayerTest.java 361 2008-01-10 08:41:21Z jpiera $
48
 * $Log$
49
 * Revision 1.2  2007/06/29 12:19:48  jorpiell
50
 * The schema validation is made independently of the concrete writer
51
 *
52
 * Revision 1.1  2007/05/02 11:46:50  jorpiell
53
 * Writing tests updated
54
 *
55
 *
56
 */
57
/**
58
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
59
 */
60
public class KMLMultiGeometryLayerTest extends GPEMultiGeometryLayerTest {
61

  
62
	/*
63
	 * (non-Javadoc)
64
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass()
65
	 */
66
	public Class getGPEParserClass() {
67
		return org.gvsig.gpe.kml.GPEKmlv21Parser.class;
68
	}
69

  
70
	/*
71
	 * (non-Javadoc)
72
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass()
73
	 */
74
	public Class getGPEWriterHandlerClass() {
75
		return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class;
76
	}	
77
	
78
}
0 79

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/warnings/KMLPolygonAutomaticallyClosedTest.java
1
package org.gvsig.gpe.kml.writers.v21.kml.warnings;
2

  
3
import org.gvsig.gpe.writers.warnings.GPEPolygonAutomaticallyClosedTest;
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:KMLPolygonAutomaticallyClosedTest.java 358 2008-01-09 17:50:58Z jpiera $
48
 * $Log$
49
 * Revision 1.2  2007/06/29 12:19:48  jorpiell
50
 * The schema validation is made independently of the concrete writer
51
 *
52
 * Revision 1.1  2007/05/16 09:30:09  jorpiell
53
 * the writting methods has to have the errorHandler argument
54
 *
55
 *
56
 */
57
/**
58
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
59
 */
60
public class KMLPolygonAutomaticallyClosedTest extends
61
		GPEPolygonAutomaticallyClosedTest {
62
	/*
63
	 * (non-Javadoc)
64
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass()
65
	 */
66
	public Class getGPEParserClass() {
67
		return org.gvsig.gpe.kml.GPEKmlv21Parser.class;
68
	}
69

  
70
	/*
71
	 * (non-Javadoc)
72
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass()
73
	 */
74
	public Class getGPEWriterHandlerClass() {
75
		return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class;
76
	}
77

  
78
}
0 79

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/warnings/KMLNotMultiPointSupported.java
1
package org.gvsig.gpe.kml.writers.v21.kml.warnings;
2

  
3
import org.gvsig.gpe.containers.Feature;
4
import org.gvsig.gpe.containers.Layer;
5
import org.gvsig.gpe.containers.MultiGeometry;
6
import org.gvsig.gpe.warnings.FeatureNotSupportedWarning;
7
import org.gvsig.gpe.writers.GPEMultiPointLayerTest;
8

  
9
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
10
 *
11
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
12
 *
13
 * This program is free software; you can redistribute it and/or
14
 * modify it under the terms of the GNU General Public License
15
 * as published by the Free Software Foundation; either version 2
16
 * of the License, or (at your option) any later version.
17
 *
18
 * This program is distributed in the hope that it will be useful,
19
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
 * GNU General Public License for more details.
22
 *
23
 * You should have received a copy of the GNU General Public License
24
 * along with this program; if not, write to the Free Software
25
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
26
 *
27
 * For more information, contact:
28
 *
29
 *  Generalitat Valenciana
30
 *   Conselleria d'Infraestructures i Transport
31
 *   Av. Blasco Ib??ez, 50
32
 *   46010 VALENCIA
33
 *   SPAIN
34
 *
35
 *      +34 963862235
36
 *   gvsig@gva.es
37
 *      www.gvsig.gva.es
38
 *
39
 *    or
40
 *
41
 *   IVER T.I. S.A
42
 *   Salamanca 50
43
 *   46005 Valencia
44
 *   Spain
45
 *
46
 *   +34 963163400
47
 *   dac@iver.es
48
 */
49
/* CVS MESSAGES:
50
 *
51
 * $Id:KMLNotMultiPointSupported.java 358 2008-01-09 17:50:58Z jpiera $
52
 * $Log$
53
 * Revision 1.3  2007/06/29 12:19:48  jorpiell
54
 * The schema validation is made independently of the concrete writer
55
 *
56
 * Revision 1.2  2007/06/07 14:53:59  jorpiell
57
 * Add the schema support
58
 *
59
 * Revision 1.1  2007/05/16 12:08:14  jorpiell
60
 * A multipoint layer is not supported
61
 *
62
 *
63
 */
64
/**
65
 * This test is made to try the conversion between a multipoint
66
 * layer ans a multigeometry layer that the KML parser make.
67
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
68
 */
69
public class KMLNotMultiPointSupported extends GPEMultiPointLayerTest {
70
	
71
	public void readObjects() {
72
		Layer[] layers = getLayers();
73
		assertEquals(layers.length, 1);		
74
		Layer layer = layers[0];
75
	
76
		assertEquals(layer.getFeatures().size(), 1);
77
		//FEATURE 1
78
		Feature feature1 = (Feature)layer.getFeatures().get(0);
79
		MultiGeometry multiGeometry = (MultiGeometry)feature1.getGeometry();
80
		assertEquals(multiGeometry.getGeometries().size(), 3);
81

  
82
		assertEquals(getErrorHandler().getWarningsSize(),1);
83
		assertTrue(getErrorHandler().getWarningAt(0) instanceof FeatureNotSupportedWarning);
84
		for (int i=0 ; i<getErrorHandler().getWarningsSize() ; i++){
85
			System.out.println(getErrorHandler().getWarningAt(i));
86
		}
87
	}
88

  
89
	/*
90
	 * (non-Javadoc)
91
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass()
92
	 */
93
	public Class getGPEParserClass() {
94
		return org.gvsig.gpe.kml.GPEKmlv21Parser.class;
95
	}
96

  
97
	/*
98
	 * (non-Javadoc)
99
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass()
100
	 */
101
	public Class getGPEWriterHandlerClass() {
102
		return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class;
103
	}
104
}
0 105

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLFeatureWithIdTest.java
1
package org.gvsig.gpe.kml.writers.v21.kml;
2

  
3
import org.gvsig.gpe.writers.GPEFeatureWithIdTest;
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: KMLFeatureWithIdTest.java 361 2008-01-10 08:41:21Z jpiera $
48
 * $Log$
49
 * Revision 1.2  2007/06/29 12:19:48  jorpiell
50
 * The schema validation is made independently of the concrete writer
51
 *
52
 * Revision 1.1  2007/05/02 11:46:50  jorpiell
53
 * Writing tests updated
54
 *
55
 *
56
 */
57
/**
58
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
59
 */
60
public class KMLFeatureWithIdTest extends GPEFeatureWithIdTest {
61

  
62
	/*
63
	 * (non-Javadoc)
64
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass()
65
	 */
66
	public Class getGPEParserClass() {
67
		return org.gvsig.gpe.kml.GPEKmlv21Parser.class;
68
	}
69

  
70
	/*
71
	 * (non-Javadoc)
72
	 * @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass()
73
	 */
74
	public Class getGPEWriterHandlerClass() {
75
		return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class;
76
	}	
77
	
78

  
79
}
0 80

  
trunk/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLGeometryWithIdTest.java
1
package org.gvsig.gpe.kml.writers.v21.kml;
2

  
3
import org.gvsig.gpe.writers.GPEGeometryWithIdTest;
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: KMLGeometryWithIdTest.java 361 2008-01-10 08:41:21Z jpiera $
48
 * $Log$
49
 * Revision 1.2  2007/06/29 12:19:48  jorpiell
50
 * The schema validation is made independently of the concrete writer
51
 *
52
 * Revision 1.1  2007/05/02 11:46:50  jorpiell
53
 * Writing tests updated
54
 *
55
 *
56
 */
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff