[lsc-changes] r499 - lsc/trunk/src/test/java/org/lsc/utils

jclarke at lsc-project.org jclarke at lsc-project.org
Mon Nov 30 00:06:55 CET 2009


Author: jclarke
Date: 2009-11-30 00:06:55 +0100 (Mon, 30 Nov 2009)
New Revision: 499

Modified:
   lsc/trunk/src/test/java/org/lsc/utils/FrenchFiltersTest.java
Log:
Add test in FrenchFilters

Modified: lsc/trunk/src/test/java/org/lsc/utils/FrenchFiltersTest.java
===================================================================
--- lsc/trunk/src/test/java/org/lsc/utils/FrenchFiltersTest.java	2009-11-29 23:06:34 UTC (rev 498)
+++ lsc/trunk/src/test/java/org/lsc/utils/FrenchFiltersTest.java	2009-11-29 23:06:55 UTC (rev 499)
@@ -48,11 +48,16 @@
 		assertEquals("abcdefghijklmn", FrenchFilters.filterUid(uid));
 	}
 
-		public void testFilterShortUid() {
+	public void testFilterShortUid() {
 		String uid = "ABCDEFGHIJKLMNOPQ";
 		assertEquals("abcdefgh", FrenchFilters.filterShortUid(uid));
 	}
 
+	public void testFilterLengthString() {
+		assertEquals("identifier", FrenchFilters.filterLengthString("identifier", 12));
+		assertEquals("ident", FrenchFilters.filterLengthString("identifier", 5));
+		assertEquals("ident", FrenchFilters.filterLengthString("id-entifier", 5));
+	}
 
 //	public static String filterStringRegExp(final String value, final String regexp)
 //					throws CharacterUnacceptedException {
@@ -144,4 +149,6 @@
 //	public static String filterDate(final String value, final String format)
 //					throws CharacterUnacceptedException {
 
+		
+	
 }



More information about the lsc-changes mailing list