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

View differences:

SimpleCentroidTest.java
238 238
			source.setLayerSource(store);
239 239

  
240 240
			AbstractGeocodingStyle style = new SimpleCentroid();
241
			FeatureType ftype = store.getDefaultFeatureType();
242 241
			Literal relations = new DefaultLiteral();
243
			relations.add(new DefaultRelationsComponent("Provincia", ftype
244
					.getAttributeDescriptor("NOMBRE99")));
245
			relations.add(new DefaultRelationsComponent("Pais", ftype
246
					.getAttributeDescriptor("PAIS")));
242
			relations.add(new DefaultRelationsComponent("Provincia","NOMBRE99"));
243
			relations.add(new DefaultRelationsComponent("Pais","PAIS"));
247 244

  
248 245
			style.setRelationsLiteral(relations);
249 246
			source.setStyle(style);
......
282 279
			source.setLayerSource(store);
283 280

  
284 281
			AbstractGeocodingStyle style = new SimpleCentroid();
285
			FeatureType ftype = store.getDefaultFeatureType();
286 282
			Literal relations = new DefaultLiteral();
287
			relations.add(new DefaultRelationsComponent("Calle", ftype
288
					.getAttributeDescriptor("STREET_NAM")));
289
			relations.add(new DefaultRelationsComponent("TipoVia", ftype
290
					.getAttributeDescriptor("STREET_TYP")));
291
			relations.add(new DefaultRelationsComponent("Municipio", ftype
292
					.getAttributeDescriptor("MUNI")));
293
			relations.add(new DefaultRelationsComponent("Provincia", ftype
294
					.getAttributeDescriptor("PROV")));
295
			relations.add(new DefaultRelationsComponent("Pais", ftype
296
					.getAttributeDescriptor("PAIS")));
283
			relations.add(new DefaultRelationsComponent("Calle","STREET_NAM"));
284
			relations.add(new DefaultRelationsComponent("TipoVia","STREET_TYP"));
285
			relations.add(new DefaultRelationsComponent("Municipio","MUNI"));
286
			relations.add(new DefaultRelationsComponent("Provincia","PROV"));
287
			relations.add(new DefaultRelationsComponent("Pais","PAIS"));
297 288

  
298 289
			style.setRelationsLiteral(relations);
299 290
			source.setStyle(style);
......
334 325
			AbstractGeocodingStyle style = new SimpleCentroid();
335 326
			FeatureType ftype = store.getDefaultFeatureType();
336 327
			DefaultLiteral relations = new DefaultLiteral();
337
			relations.add(new DefaultRelationsComponent("Provincia", ftype
338
					.getAttributeDescriptor("NOMBRE99")));
339
			relations.add(new DefaultRelationsComponent("Pais", ftype
340
					.getAttributeDescriptor("PAIS")));
328
			relations.add(new DefaultRelationsComponent("Provincia", "NOMBRE99"));
329
			relations.add(new DefaultRelationsComponent("Pais","PAIS"));
341 330

  
342 331
			style.setRelationsLiteral(relations);
343 332
			source.setStyle(style);

Also available in: Unified diff