Revision 31082 branches/v2_0_0_prep/libraries/libGeocoding/src-test/org/gvsig/geocoding/ComposedTest.java
ComposedTest.java | ||
---|---|---|
56 | 56 |
import org.gvsig.geocoding.impl.DataGeocoderImpl; |
57 | 57 |
import org.gvsig.geocoding.impl.DefaultGeocodingLibrary; |
58 | 58 |
import org.gvsig.geocoding.pattern.GeocodingSource; |
59 |
import org.gvsig.geocoding.pattern.Patterngeocoding;
|
|
59 |
import org.gvsig.geocoding.pattern.GeocodingPattern;
|
|
60 | 60 |
import org.gvsig.geocoding.pattern.impl.DefaultGeocodingSource; |
61 |
import org.gvsig.geocoding.pattern.impl.DefaultPatterngeocoding;
|
|
61 |
import org.gvsig.geocoding.pattern.impl.DefaultGeocodingPattern;
|
|
62 | 62 |
import org.gvsig.geocoding.result.GeocodingResult; |
63 | 63 |
import org.gvsig.geocoding.styles.AbstractGeocodingStyle; |
64 | 64 |
import org.gvsig.geocoding.styles.impl.Composed; |
... | ... | |
117 | 117 |
public void testCrossGeocode() throws ReadException { |
118 | 118 |
|
119 | 119 |
/* Set the pattern */ |
120 |
Patterngeocoding pat = getPattern();
|
|
120 |
GeocodingPattern pat = getPattern();
|
|
121 | 121 |
|
122 | 122 |
Geocoder geocoder = GeocodingLocator.getInstance().getGeocoder(); |
123 | 123 |
((DataGeocoderImpl) geocoder).setPattern(pat); |
... | ... | |
150 | 150 |
public void testThirdGeocode() throws ReadException { |
151 | 151 |
|
152 | 152 |
/* Set the pattern */ |
153 |
Patterngeocoding pat = getPattern();
|
|
153 |
GeocodingPattern pat = getPattern();
|
|
154 | 154 |
|
155 | 155 |
Geocoder geocoder = GeocodingLocator.getInstance().getGeocoder(); |
156 | 156 |
((DataGeocoderImpl) geocoder).setPattern(pat); |
... | ... | |
180 | 180 |
* |
181 | 181 |
* @return |
182 | 182 |
*/ |
183 |
private Patterngeocoding getPattern() {
|
|
183 |
private GeocodingPattern getPattern() {
|
|
184 | 184 |
|
185 | 185 |
assertNotNull(dataManager); |
186 | 186 |
dataManager.registerDefaultEvaluator(SQLJEPEvaluator.class); |
187 | 187 |
|
188 |
Patterngeocoding pat = new DefaultPatterngeocoding();
|
|
188 |
GeocodingPattern pat = new DefaultGeocodingPattern();
|
|
189 | 189 |
|
190 | 190 |
try { |
191 | 191 |
pat.setPatternName("ComposedCentroid"); |
Also available in: Unified diff