[Schmitzm-commits] r956 - trunk/src_junit/schmitzm/geotools/feature

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Aug 5 20:47:32 CEST 2010


Author: alfonx
Date: 2010-08-05 20:47:31 +0200 (Thu, 05 Aug 2010)
New Revision: 956

Modified:
   trunk/src_junit/schmitzm/geotools/feature/FeatureUtilTest.java
Log:
getCQLAttributNames verbessert um variablennamen zu erkennen, die mit einer zahl beginnen. eine sache, die in CQL eigentlich vberboten ist.

Modified: trunk/src_junit/schmitzm/geotools/feature/FeatureUtilTest.java
===================================================================
--- trunk/src_junit/schmitzm/geotools/feature/FeatureUtilTest.java	2010-08-05 18:04:49 UTC (rev 955)
+++ trunk/src_junit/schmitzm/geotools/feature/FeatureUtilTest.java	2010-08-05 18:47:31 UTC (rev 956)
@@ -34,19 +34,24 @@
 
 	@Test
 	public void testGetCQLAttributNames() throws Exception {
-		List<String> aa ;
-		
+		List<String> aa;
+
+		aa = FeatureUtil.getCQLAttributNames("1P_HH/HH_GES");
+		assertEquals(2, aa.size());
+		assertEquals("1P_HH", aa.get(0));
+		assertEquals("HH_GES", aa.get(1));
+
 		aa = FeatureUtil.getCQLAttributNames("fff*-3(de_fr/ddd)/100+2");
 		assertEquals(3, aa.size());
 		assertEquals("fff", aa.get(0));
 		assertEquals("de_fr", aa.get(1));
 		assertEquals("ddd", aa.get(2));
-		
+
 		aa = FeatureUtil.getCQLAttributNames("gest_1lj/lebeng_ge");
 		assertEquals(2, aa.size());
 		assertEquals("gest_1lj", aa.get(0));
 		assertEquals("lebeng_ge", aa.get(1));
-		
+
 		aa = FeatureUtil.getCQLAttributNames("de_fr/ddd");
 		assertEquals("de_fr", aa.get(0));
 		assertEquals("ddd", aa.get(1));



More information about the Schmitzm-commits mailing list