Revision 11265 trunk/libraries/libGPE/src-test/org/gvsig/gpe/readers/GPEReaderBaseTest.java
GPEReaderBaseTest.java | ||
---|---|---|
1 | 1 |
package org.gvsig.gpe.readers; |
2 | 2 |
|
3 | 3 |
import java.io.File; |
4 |
import java.lang.reflect.InvocationTargetException; |
|
5 | 4 |
import java.util.ArrayList; |
6 | 5 |
|
6 |
import junit.framework.TestCase; |
|
7 |
|
|
7 | 8 |
import org.gvsig.gpe.GPEContentHandler; |
8 | 9 |
import org.gvsig.gpe.GPEContentHandlerTest; |
9 | 10 |
import org.gvsig.gpe.GPEErrorHandler; |
... | ... | |
12 | 13 |
import org.gvsig.gpe.GPERegister; |
13 | 14 |
import org.gvsig.gpe.containers.Layer; |
14 | 15 |
|
15 |
import junit.framework.TestCase; |
|
16 |
|
|
17 | 16 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
18 | 17 |
* |
19 | 18 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
... | ... | |
58 | 57 |
* |
59 | 58 |
* $Id$ |
60 | 59 |
* $Log$ |
61 |
* Revision 1.4 2007-04-19 07:23:20 jorpiell |
|
60 |
* Revision 1.5 2007-04-19 11:50:20 csanchez |
|
61 |
* Actualizacion protoripo libGPE |
|
62 |
* |
|
63 |
* Revision 1.4 2007/04/19 07:23:20 jorpiell |
|
62 | 64 |
* Add the add methods to teh contenhandler and change the register mode |
63 | 65 |
* |
64 | 66 |
* Revision 1.3 2007/04/14 16:06:35 jorpiell |
... | ... | |
82 | 84 |
private GPEParser parser = null; |
83 | 85 |
private GPEContentHandler contenHandler = null; |
84 | 86 |
private GPEErrorHandler errorHandler = null; |
87 |
private String parserName="FORMAT VERSION"; |
|
88 |
private String parserDescription="default parser description"; |
|
85 | 89 |
|
90 |
|
|
86 | 91 |
public void setUp() throws Exception{ |
87 | 92 |
//Register the parser |
88 | 93 |
GPERegister.addGpeParser(getGPEParserName(), |
... | ... | |
117 | 122 |
* process |
118 | 123 |
*/ |
119 | 124 |
public String getGPEParserName(){ |
120 |
return "FORMAT VERSION";
|
|
125 |
return parserName;
|
|
121 | 126 |
} |
122 | 127 |
|
123 | 128 |
/** |
... | ... | |
126 | 131 |
* process |
127 | 132 |
*/ |
128 | 133 |
public String getGPEParserDescription(){ |
129 |
return "default parser description";
|
|
134 |
return parserDescription ;
|
|
130 | 135 |
} |
136 |
/** |
|
137 |
* Each test must to return its parser name |
|
138 |
* to register it before to start the parsing |
|
139 |
* process |
|
140 |
*/ |
|
141 |
public void setGPEParserName(String name){ |
|
142 |
parserName=name; |
|
143 |
} |
|
131 | 144 |
|
132 | 145 |
/** |
146 |
* Each test must to return its parser description |
|
147 |
* to register it before to start the parsing |
|
148 |
* process |
|
149 |
*/ |
|
150 |
public void setGPEParserDescription(String description){ |
|
151 |
parserDescription=description; |
|
152 |
} |
|
153 |
/** |
|
133 | 154 |
* Each test must to return its parser class |
134 | 155 |
* that will be used to create new parsers. |
135 | 156 |
*/ |
Also available in: Unified diff