Revision 22975 trunk/extensions/extNormalization/src-test/org/gvsig/normalization/operations/TestNormalizeTableJoinTable.java
TestNormalizeTableJoinTable.java | ||
---|---|---|
34 | 34 |
import junit.framework.TestCase; |
35 | 35 |
|
36 | 36 |
import org.apache.log4j.Logger; |
37 |
import org.gvsig.geocoding.patterns.normalization.Patternnormalization; |
|
37 |
import org.gvsig.patterns.normalization.Patternnormalization; |
|
38 |
import org.gvsig.tools.storage.IStorage; |
|
39 |
import org.gvsig.tools.storage.StorageXML; |
|
38 | 40 |
|
39 | 41 |
import com.hardcode.gdbms.driver.exceptions.CloseDriverException; |
40 | 42 |
import com.hardcode.gdbms.engine.data.file.FileDataSource; |
... | ... | |
54 | 56 |
public class TestNormalizeTableJoinTable extends TestCase { |
55 | 57 |
|
56 | 58 |
private static final Logger log = PluginServices.getLogger(); |
57 |
Patternnormalization pat = null;
|
|
59 |
Patternnormalization pat = new Patternnormalization();
|
|
58 | 60 |
File dbfFile = new File( |
59 | 61 |
"src-test/org/gvsig/normalization/operations/testdata/pro.dbf"); |
60 | 62 |
File patFile = new File( |
... | ... | |
66 | 68 |
|
67 | 69 |
public void setUp() { |
68 | 70 |
try { |
71 |
IStorage storage = new StorageXML(); |
|
69 | 72 |
FileReader red = new FileReader(patFile); |
70 |
pat = (Patternnormalization) Patternnormalization.unmarshal(red); |
|
73 |
|
|
74 |
|
|
75 |
storage.load(red); |
|
76 |
pat.setstate(storage); |
|
77 |
|
|
78 |
//pat = (Patternnormalization) Patternnormalization.unmarshal(red); |
|
71 | 79 |
} catch (Exception e) { |
72 | 80 |
log.error("Error parsing the xml pattern", e); |
73 | 81 |
} |
Also available in: Unified diff