Statistics
| Revision:

root / trunk / libraries / libGPE-GML / src-test / org / gvsig / gpe / gml / writers / GMLWriteLayerHeaderTest.java @ 11171

History | View | Annotate | Download (2.12 KB)

1
package org.gvsig.gpe.gml.writers;
2

    
3
import java.io.File;
4
import java.io.IOException;
5

    
6
import org.gvsig.gpe.GPEErrorHandlerTest;
7
import org.gvsig.gpe.GPERegister;
8
import org.gvsig.gpe.gml.writer.GPEGmlWriterHandler;
9

    
10
import junit.framework.TestCase;
11

    
12
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
13
 *
14
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
15
 *
16
 * This program is free software; you can redistribute it and/or
17
 * modify it under the terms of the GNU General Public License
18
 * as published by the Free Software Foundation; either version 2
19
 * of the License, or (at your option) any later version.
20
 *
21
 * This program is distributed in the hope that it will be useful,
22
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
 * GNU General Public License for more details.
25
 *
26
 * You should have received a copy of the GNU General Public License
27
 * along with this program; if not, write to the Free Software
28
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
29
 *
30
 * For more information, contact:
31
 *
32
 *  Generalitat Valenciana
33
 *   Conselleria d'Infraestructures i Transport
34
 *   Av. Blasco Ib??ez, 50
35
 *   46010 VALENCIA
36
 *   SPAIN
37
 *
38
 *      +34 963862235
39
 *   gvsig@gva.es
40
 *      www.gvsig.gva.es
41
 *
42
 *    or
43
 *
44
 *   IVER T.I. S.A
45
 *   Salamanca 50
46
 *   46005 Valencia
47
 *   Spain
48
 *
49
 *   +34 963163400
50
 *   dac@iver.es
51
 */
52
/* CVS MESSAGES:
53
 *
54
 * $Id: GMLWriteLayerHeaderTest.java 11171 2007-04-12 17:06:44Z jorpiell $
55
 * $Log$
56
 * Revision 1.1  2007-04-12 17:06:44  jorpiell
57
 * First GML writing tests
58
 *
59
 *
60
 */
61
/**
62
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
63
 */
64
public class GMLWriteLayerHeaderTest extends GMLWriteBaseTest {
65
        
66
        public void test1() throws IOException{
67
                GPEGmlWriterHandler writer = new GPEGmlWriterHandler("GML",
68
                                new File("testdata/tmp/header.gml"),
69
                                new GPEErrorHandlerTest());
70
                writer.initialize();
71
                writer.startLayer("1", "Layer Header", "Layer header test", "23030");
72
                writer.startBbox("bbox", generateRandomBBox(),
73
                                generateRandomBBox(),
74
                                generateRandomBBox(),
75
                                "23030");
76
                writer.endBbox();
77
                writer.endLayer();
78
                writer.close();
79
        }
80
}