Revision 28375 branches/v2_0_0_prep/libraries/libGeocoding/src-test/org/gvsig/geocoding/SimpleRangeTest.java

View differences:

SimpleRangeTest.java
169 169
			source.setLayerSource(store);
170 170

  
171 171
			AbstractGeocodingStyle style = new SimpleRange();
172
			FeatureType ftype = store.getDefaultFeatureType();
173 172
			DefaultLiteral relations = new DefaultLiteral();
174
			relations.add(new DefaultRelationsComponent("Calle", ftype
175
					.getAttributeDescriptor("STREET_NAM")));
176
			relations.add(new DefaultRelationsComponent("TipoVia", ftype
177
					.getAttributeDescriptor("STREET_TYP")));
178
			relations.add(new DefaultRelationsComponent("Municipio", ftype
179
					.getAttributeDescriptor("MUNI")));
180
			relations.add(new DefaultRelationsComponent("Provincia", ftype
181
					.getAttributeDescriptor("PROV")));
182
			relations.add(new DefaultRelationsComponent("Pais", ftype
183
					.getAttributeDescriptor("PAIS")));
173
			relations.add(new DefaultRelationsComponent("Calle","STREET_NAM"));
174
			relations.add(new DefaultRelationsComponent("TipoVia","STREET_TYP"));
175
			relations.add(new DefaultRelationsComponent("Municipio","MUNI"));
176
			relations.add(new DefaultRelationsComponent("Provincia","PROV"));
177
			relations.add(new DefaultRelationsComponent("Pais","PAIS"));
184 178

  
185 179
			style.setRelationsLiteral(relations);
186 180
			source.setStyle(style);
187 181

  
188
			RelationsComponent from = new DefaultRelationsComponent("NParFrom", ftype
189
					.getAttributeDescriptor("RF_ADD"));
182
			RelationsComponent from = new DefaultRelationsComponent("NParFrom","RF_ADD");
190 183
			;
191 184
			((SimpleRange) style).setFirstNumber(from);
192 185

  
193
			RelationsComponent to = new DefaultRelationsComponent("NParTo", ftype
194
					.getAttributeDescriptor("RT_ADD"));
186
			RelationsComponent to = new DefaultRelationsComponent("NParTo","RT_ADD");
195 187
			((SimpleRange) style).setLastNumber(to);
196 188

  
197 189
			pat.setSource(source);

Also available in: Unified diff