directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r764131 [13/16] - in /directory: apacheds/trunk/ apacheds/trunk/core-avl/ apacheds/trunk/core-avl/src/main/java/org/apache/directory/server/core/avltree/ apacheds/trunk/core-avl/src/test/java/org/apache/directory/server/core/avltree/ apache...
Date Sat, 11 Apr 2009 01:03:25 GMT
Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/DeepTrimNormalizerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/DeepTrimNormalizerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/DeepTrimNormalizerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/DeepTrimNormalizerTest.java Sat Apr 11 01:03:00 2009
@@ -19,194 +19,230 @@
  */
 package org.apache.directory.shared.ldap.schema;
 
+
 import javax.naming.NamingException;
 
 import org.apache.directory.shared.ldap.schema.normalizers.DeepTrimNormalizer;
+import org.junit.Test;
 
-import junit.framework.TestCase;
+import static org.junit.Assert.assertEquals;
 
-//import org.apache.directory.shared.ldap.util.StringTools;
 
 /**
- *
  * Test the normalizer class
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class DeepTrimNormalizerTest extends TestCase
+public class DeepTrimNormalizerTest
 {
-   public void testDeepTrimNormalizerNull() throws NamingException
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       assertEquals( "", normalizer.normalize( (String)null ) );
-   }
-
-   public void testDeepTrimNormalizerEmpty() throws NamingException
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       assertEquals( "", normalizer.normalize( "" ) );
-   }
-
-   public void testDeepTrimNormalizerOneSpace() throws NamingException
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       assertEquals( "", normalizer.normalize( " " ) );
-   }
-
-   public void testDeepTrimNormalizerTwoSpaces() throws NamingException
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       assertEquals( "", normalizer.normalize( "  " ) );
-   }
-
-   public void testDeepTrimNormalizerNSpaces() throws NamingException
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       assertEquals( "", normalizer.normalize( "      " ) );
-   }
-
-   public void testInsignifiantSpacesStringOneChar() throws NamingException
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       assertEquals( "a", normalizer.normalize( "a" ) );
-   }
-
-   public void testInsignifiantSpacesStringTwoChars() throws NamingException
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       assertEquals( "aa", normalizer.normalize( "aa" ) );
-   }
-
-   public void testInsignifiantSpacesStringNChars() throws NamingException
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       assertEquals( "aaaaa", normalizer.normalize( "aaaaa" ) );
-   }
-
-   public void testInsignifiantSpacesStringOneCombining() throws NamingException
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       char[] chars = new char[]{ ' ', 0x0310 };
-       char[] expected = new char[]{ ' ', 0x0310 };
-       assertEquals( new String( expected ), normalizer.normalize( new String( chars ) ) );
-   }
-
-   public void testInsignifiantSpacesStringNCombining() throws NamingException
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       char[] chars = new char[]{ ' ', 0x0310, ' ', 0x0311, ' ', 0x0312 };
-       char[] expected = new char[]{ ' ', 0x0310, ' ', 0x0311, ' ', 0x0312 };
-       assertEquals( new String( expected ), normalizer.normalize( new String( chars ) ) );
-   }
-
-   public void testInsignifiantSpacesStringCharsSpaces() throws NamingException
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       assertEquals( "a", normalizer.normalize( " a" ) );
-       assertEquals( "a", normalizer.normalize( "a " ) );
-       assertEquals( "a", normalizer.normalize( " a " ) );
-       assertEquals( "a a", normalizer.normalize( "a a" ) );
-       assertEquals( "a a", normalizer.normalize( " a a" ) );
-       assertEquals( "a a", normalizer.normalize( "a a " ) );
-       assertEquals( "a a", normalizer.normalize( "a  a" ) );
-       assertEquals( "a a", normalizer.normalize( " a   a " ) );
-       assertEquals( "aaa aaa aaa", normalizer.normalize( "  aaa   aaa   aaa  " ) );
-   }
-
-   public void testNormalizeCharsCombiningSpaces() throws NamingException
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       char[] chars = new char[]{ ' ', 0x0310, 'a', 'a', ' ', ' ',  0x0311, ' ', ' ', 'a', 0x0311, 0x0312 };
-       char[] expected = new char[]{ ' ', 0x0310, 'a', 'a', ' ', ' ',  0x0311, ' ', 'a', 0x0311, 0x0312 };
-       assertEquals( new String( expected ), normalizer.normalize( new String( chars ) ) );
-   }
-
-   public void testNormalizeString() throws Exception
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       assertEquals( "abcd", normalizer.normalize( "abcd" ) );
-   }
-
-   public void testMapToSpace() throws Exception
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       char[] chars = new char[]{ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0085, 0x00A0, 0x1680,
-           0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A,
-           0x2028, 0x2029, 0x202F, 0x205F };
-       assertEquals( "", normalizer.normalize( new String( chars ) ) );
-   }
-
-   public void testNormalizeIgnore() throws Exception
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       char[] chars = new char[58];
-
-       int pos = 0;
-
-       for ( char c = 0x0000; c < 0x0008; c++ )
-       {
-           chars[pos++] = c;
-       }
-
-       for ( char c = 0x000E; c < 0x001F; c++ )
-       {
-           chars[pos++] = c;
-       }
-
-       for ( char c = 0x007F; c < 0x0084; c++ )
-       {
-           chars[pos++] = c;
-       }
-
-       for ( char c = 0x0086; c < 0x009F; c++ )
-       {
-           chars[pos++] = c;
-       }
-
-       chars[pos++] = 0x00AD;
-
-       assertEquals( "", normalizer.normalize( new String( chars ) ) );
-   }
-
-   /*
-   public void testSpeed() throws Exception
-   {
-       Normalizer normalizer = new DeepTrimNormalizer();
-       char[] chars = new char[]{ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0085, 0x00A0, 0x1680,
-           0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A,
-           0x2028, 0x2029, 0x202F, 0x205F };
-       String s = new String( chars );
-       assertEquals( "", normalizer.normalize( s ) );
-       
-       String t = "xs crvtbynU  Jikl7897790";
-       
-       Normalizer normalizer2 = new DeepTrimToLowerNormalizer();
-       
-       String s1 = (String)normalizer2.normalize( t );
-
-       long t0 = System.currentTimeMillis();
-
-       for ( int i = 0; i < 100000; i++ )
-       {
-           normalizer2.normalize( t );
-       }
-       
-       long t1 = System.currentTimeMillis();
-       
-       System.out.println( t1 - t0 );
-
-       String s2 = StringTools.deepTrimToLower( t );
-
-       t0 = System.currentTimeMillis();
-
-       for ( int i = 0; i < 100000; i++ )
-       {
-           StringTools.deepTrimToLower( t );
-       }
-       
-       t1 = System.currentTimeMillis();
-       
-       System.out.println( t1 - t0 );
-   }
-   */
+    @Test
+    public void testDeepTrimNormalizerNull() throws NamingException
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        assertEquals( "", normalizer.normalize( ( String ) null ) );
+    }
+
+
+    @Test
+    public void testDeepTrimNormalizerEmpty() throws NamingException
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        assertEquals( "", normalizer.normalize( "" ) );
+    }
+
+
+    @Test
+    public void testDeepTrimNormalizerOneSpace() throws NamingException
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        assertEquals( "", normalizer.normalize( " " ) );
+    }
+
+
+    @Test
+    public void testDeepTrimNormalizerTwoSpaces() throws NamingException
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        assertEquals( "", normalizer.normalize( "  " ) );
+    }
+
+
+    @Test
+    public void testDeepTrimNormalizerNSpaces() throws NamingException
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        assertEquals( "", normalizer.normalize( "      " ) );
+    }
+
+
+    @Test
+    public void testInsignifiantSpacesStringOneChar() throws NamingException
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        assertEquals( "a", normalizer.normalize( "a" ) );
+    }
+
+
+    @Test
+    public void testInsignifiantSpacesStringTwoChars() throws NamingException
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        assertEquals( "aa", normalizer.normalize( "aa" ) );
+    }
+
+
+    @Test
+    public void testInsignifiantSpacesStringNChars() throws NamingException
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        assertEquals( "aaaaa", normalizer.normalize( "aaaaa" ) );
+    }
+
+
+    @Test
+    public void testInsignifiantSpacesStringOneCombining() throws NamingException
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        char[] chars = new char[]
+            { ' ', 0x0310 };
+        char[] expected = new char[]
+            { ' ', 0x0310 };
+        assertEquals( new String( expected ), normalizer.normalize( new String( chars ) ) );
+    }
+
+
+    @Test
+    public void testInsignifiantSpacesStringNCombining() throws NamingException
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        char[] chars = new char[]
+            { ' ', 0x0310, ' ', 0x0311, ' ', 0x0312 };
+        char[] expected = new char[]
+            { ' ', 0x0310, ' ', 0x0311, ' ', 0x0312 };
+        assertEquals( new String( expected ), normalizer.normalize( new String( chars ) ) );
+    }
+
+
+    @Test
+    public void testInsignifiantSpacesStringCharsSpaces() throws NamingException
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        assertEquals( "a", normalizer.normalize( " a" ) );
+        assertEquals( "a", normalizer.normalize( "a " ) );
+        assertEquals( "a", normalizer.normalize( " a " ) );
+        assertEquals( "a a", normalizer.normalize( "a a" ) );
+        assertEquals( "a a", normalizer.normalize( " a a" ) );
+        assertEquals( "a a", normalizer.normalize( "a a " ) );
+        assertEquals( "a a", normalizer.normalize( "a  a" ) );
+        assertEquals( "a a", normalizer.normalize( " a   a " ) );
+        assertEquals( "aaa aaa aaa", normalizer.normalize( "  aaa   aaa   aaa  " ) );
+    }
+
+
+    @Test
+    public void testNormalizeCharsCombiningSpaces() throws NamingException
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        char[] chars = new char[]
+            { ' ', 0x0310, 'a', 'a', ' ', ' ', 0x0311, ' ', ' ', 'a', 0x0311, 0x0312 };
+        char[] expected = new char[]
+            { ' ', 0x0310, 'a', 'a', ' ', ' ', 0x0311, ' ', 'a', 0x0311, 0x0312 };
+        assertEquals( new String( expected ), normalizer.normalize( new String( chars ) ) );
+    }
+
+
+    @Test
+    public void testNormalizeString() throws Exception
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        assertEquals( "abcd", normalizer.normalize( "abcd" ) );
+    }
+
+
+    @Test
+    public void testMapToSpace() throws Exception
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        char[] chars = new char[]
+            { 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0085, 0x00A0, 0x1680, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005,
+                0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x2028, 0x2029, 0x202F, 0x205F };
+        assertEquals( "", normalizer.normalize( new String( chars ) ) );
+    }
+
+
+    @Test
+    public void testNormalizeIgnore() throws Exception
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        char[] chars = new char[58];
+
+        int pos = 0;
+
+        for ( char c = 0x0000; c < 0x0008; c++ )
+        {
+            chars[pos++] = c;
+        }
+
+        for ( char c = 0x000E; c < 0x001F; c++ )
+        {
+            chars[pos++] = c;
+        }
+
+        for ( char c = 0x007F; c < 0x0084; c++ )
+        {
+            chars[pos++] = c;
+        }
+
+        for ( char c = 0x0086; c < 0x009F; c++ )
+        {
+            chars[pos++] = c;
+        }
+
+        chars[pos++] = 0x00AD;
+
+        assertEquals( "", normalizer.normalize( new String( chars ) ) );
+    }
+
+    /*
+     @Test
+     public void testSpeed() throws Exception
+    {
+        Normalizer normalizer = new DeepTrimNormalizer();
+        char[] chars = new char[]{ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0085, 0x00A0, 0x1680,
+            0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A,
+            0x2028, 0x2029, 0x202F, 0x205F };
+        String s = new String( chars );
+        assertEquals( "", normalizer.normalize( s ) );
+        
+        String t = "xs crvtbynU  Jikl7897790";
+        
+        Normalizer normalizer2 = new DeepTrimToLowerNormalizer();
+        
+        String s1 = (String)normalizer2.normalize( t );
+
+        long t0 = System.currentTimeMillis();
+
+        for ( int i = 0; i < 100000; i++ )
+        {
+            normalizer2.normalize( t );
+        }
+        
+        long t1 = System.currentTimeMillis();
+        
+        System.out.println( t1 - t0 );
+
+        String s2 = StringTools.deepTrimToLower( t );
+
+        t0 = System.currentTimeMillis();
+
+        for ( int i = 0; i < 100000; i++ )
+        {
+            StringTools.deepTrimToLower( t );
+        }
+        
+        t1 = System.currentTimeMillis();
+        
+        System.out.println( t1 - t0 );
+    }
+    */
 }
\ No newline at end of file

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/NumericNormalizerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/NumericNormalizerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/NumericNormalizerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/NumericNormalizerTest.java Sat Apr 11 01:03:00 2009
@@ -19,79 +19,97 @@
  */
 package org.apache.directory.shared.ldap.schema;
 
+
 import javax.naming.NamingException;
 
 import org.apache.directory.shared.ldap.schema.normalizers.NumericNormalizer;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
 
-import junit.framework.TestCase;
 
 /**
- *
  * Test the numeric normalizer class
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class NumericNormalizerTest extends TestCase
+public class NumericNormalizerTest
 {
-   public void testNumericNormalizerNull() throws NamingException
-   {
-       Normalizer normalizer = new NumericNormalizer();
-       assertEquals( "", normalizer.normalize( (String)null ) );
-   }
-
-   public void testNumericNormalizerEmpty() throws NamingException
-   {
-       Normalizer normalizer = new NumericNormalizer();
-       assertEquals( "", normalizer.normalize( "" ) );
-   }
-
-   public void testNumericNormalizerOneSpace() throws NamingException
-   {
-       Normalizer normalizer = new NumericNormalizer();
-       assertEquals( "", normalizer.normalize( " " ) );
-   }
-
-   public void testNumericNormalizerTwoSpaces() throws NamingException
-   {
-       Normalizer normalizer = new NumericNormalizer();
-       assertEquals( "", normalizer.normalize( "  " ) );
-   }
-
-   public void testNumericNormalizerNSpaces() throws NamingException
-   {
-       Normalizer normalizer = new NumericNormalizer();
-       assertEquals( "", normalizer.normalize( "      " ) );
-   }
-
-   public void testInsignifiantSpacesStringOneChar() throws NamingException
-   {
-       Normalizer normalizer = new NumericNormalizer();
-       assertEquals( "1", normalizer.normalize( "1" ) );
-   }
-
-   public void testInsignifiantSpacesStringTwoChars() throws NamingException
-   {
-       Normalizer normalizer = new NumericNormalizer();
-       assertEquals( "11", normalizer.normalize( "11" ) );
-   }
-
-   public void testInsignifiantSpacesStringNChars() throws NamingException
-   {
-       Normalizer normalizer = new NumericNormalizer();
-       assertEquals( "123456", normalizer.normalize( "123456" ) );
-   }
-
-   public void testInsignifiantNumericCharsSpaces() throws NamingException
-   {
-       Normalizer normalizer = new NumericNormalizer();
-       assertEquals( "1", normalizer.normalize( " 1" ) );
-       assertEquals( "1", normalizer.normalize( "1 " ) );
-       assertEquals( "1", normalizer.normalize( " 1 " ) );
-       assertEquals( "11", normalizer.normalize( "1 1" ) );
-       assertEquals( "11", normalizer.normalize( " 1 1" ) );
-       assertEquals( "11", normalizer.normalize( "1 1 " ) );
-       assertEquals( "11", normalizer.normalize( "1  1" ) );
-       assertEquals( "11", normalizer.normalize( " 1   1 " ) );
-       assertEquals( "123456789", normalizer.normalize( "  123   456   789  " ) );
-   }
+    @Test
+    public void testNumericNormalizerNull() throws NamingException
+    {
+        Normalizer normalizer = new NumericNormalizer();
+        assertEquals( "", normalizer.normalize( ( String ) null ) );
+    }
+
+
+    @Test
+    public void testNumericNormalizerEmpty() throws NamingException
+    {
+        Normalizer normalizer = new NumericNormalizer();
+        assertEquals( "", normalizer.normalize( "" ) );
+    }
+
+
+    @Test
+    public void testNumericNormalizerOneSpace() throws NamingException
+    {
+        Normalizer normalizer = new NumericNormalizer();
+        assertEquals( "", normalizer.normalize( " " ) );
+    }
+
+
+    @Test
+    public void testNumericNormalizerTwoSpaces() throws NamingException
+    {
+        Normalizer normalizer = new NumericNormalizer();
+        assertEquals( "", normalizer.normalize( "  " ) );
+    }
+
+
+    @Test
+    public void testNumericNormalizerNSpaces() throws NamingException
+    {
+        Normalizer normalizer = new NumericNormalizer();
+        assertEquals( "", normalizer.normalize( "      " ) );
+    }
+
+
+    @Test
+    public void testInsignifiantSpacesStringOneChar() throws NamingException
+    {
+        Normalizer normalizer = new NumericNormalizer();
+        assertEquals( "1", normalizer.normalize( "1" ) );
+    }
+
+
+    @Test
+    public void testInsignifiantSpacesStringTwoChars() throws NamingException
+    {
+        Normalizer normalizer = new NumericNormalizer();
+        assertEquals( "11", normalizer.normalize( "11" ) );
+    }
+
+
+    @Test
+    public void testInsignifiantSpacesStringNChars() throws NamingException
+    {
+        Normalizer normalizer = new NumericNormalizer();
+        assertEquals( "123456", normalizer.normalize( "123456" ) );
+    }
+
+
+    @Test
+    public void testInsignifiantNumericCharsSpaces() throws NamingException
+    {
+        Normalizer normalizer = new NumericNormalizer();
+        assertEquals( "1", normalizer.normalize( " 1" ) );
+        assertEquals( "1", normalizer.normalize( "1 " ) );
+        assertEquals( "1", normalizer.normalize( " 1 " ) );
+        assertEquals( "11", normalizer.normalize( "1 1" ) );
+        assertEquals( "11", normalizer.normalize( " 1 1" ) );
+        assertEquals( "11", normalizer.normalize( "1 1 " ) );
+        assertEquals( "11", normalizer.normalize( "1  1" ) );
+        assertEquals( "11", normalizer.normalize( " 1   1 " ) );
+        assertEquals( "123456789", normalizer.normalize( "  123   456   789  " ) );
+    }
 }
\ No newline at end of file

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/SchemaUtilsTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/SchemaUtilsTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/SchemaUtilsTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/SchemaUtilsTest.java Sat Apr 11 01:03:00 2009
@@ -23,9 +23,9 @@
 import java.util.Comparator;
 import javax.naming.NamingException;
 
-import junit.framework.TestCase;
-
 import org.apache.directory.shared.ldap.NotImplementedException;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
 
 
 /**
@@ -34,7 +34,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class SchemaUtilsTest extends TestCase
+public class SchemaUtilsTest
 {
     public static Syntax[] getSyntaxes()
     {
@@ -143,6 +143,7 @@
      * operations {@link SchemaUtils#render(StringBuffer, String[])} and
      * {@link SchemaUtils#render(String[])} are tested here.
      */
+    @Test
     public void testRenderQdescrs()
     {
         assertEquals( "", SchemaUtils.render( ( String[] ) null ).toString() );
@@ -172,12 +173,6 @@
     }
 
 
-    public void testRenderObjectClassArray()
-    {
-    }
-
-    // --------------------
-
     static class SyntaxImpl extends AbstractSyntax
     {
         private static final long serialVersionUID = 1L;

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/TelephoneNumberNormalizerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/TelephoneNumberNormalizerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/TelephoneNumberNormalizerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/TelephoneNumberNormalizerTest.java Sat Apr 11 01:03:00 2009
@@ -19,106 +19,130 @@
  */
 package org.apache.directory.shared.ldap.schema;
 
+
 import javax.naming.NamingException;
 
 import org.apache.directory.shared.ldap.schema.normalizers.TelephoneNumberNormalizer;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
 
-import junit.framework.TestCase;
 
 /**
- *
  * Test the Telephone Number normalizer class
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class TelephoneNumberNormalizerTest extends TestCase
+public class TelephoneNumberNormalizerTest
 {
-   public void testTelephoneNumberNormalizerNull() throws NamingException
-   {
-       Normalizer normalizer = new TelephoneNumberNormalizer();
-       assertEquals( "", normalizer.normalize( (String)null ) );
-   }
-
-   public void testTelephoneNumberNormalizerEmpty() throws NamingException
-   {
-       Normalizer normalizer = new TelephoneNumberNormalizer();
-       assertEquals( "", normalizer.normalize( "" ) );
-   }
-
-   public void testTelephoneNumberNormalizerOneSpace() throws NamingException
-   {
-       Normalizer normalizer = new TelephoneNumberNormalizer();
-       assertEquals( "", normalizer.normalize( " " ) );
-   }
-
-   public void testTelephoneNumberNormalizerTwoSpaces() throws NamingException
-   {
-       Normalizer normalizer = new TelephoneNumberNormalizer();
-       assertEquals( "", normalizer.normalize( "  " ) );
-   }
-
-   public void testTelephoneNumberNormalizerNSpaces() throws NamingException
-   {
-       Normalizer normalizer = new TelephoneNumberNormalizer();
-       assertEquals( "", normalizer.normalize( "      " ) );
-   }
-
-   public void testTelephoneNumberNormalizerOneHyphen() throws NamingException
-   {
-       Normalizer normalizer = new TelephoneNumberNormalizer();
-       assertEquals( "", normalizer.normalize( "-" ) );
-   }
-
-   public void testTelephoneNumberNormalizerTwoHyphen() throws NamingException
-   {
-       Normalizer normalizer = new TelephoneNumberNormalizer();
-       assertEquals( "", normalizer.normalize( "--" ) );
-   }
-
-   public void testTelephoneNumberNormalizerHyphensSpaces() throws NamingException
-   {
-       Normalizer normalizer = new TelephoneNumberNormalizer();
-       assertEquals( "", normalizer.normalize( " -- - -- " ) );
-   }
-
-   public void testInsignifiantSpacesStringOneChar() throws NamingException
-   {
-       Normalizer normalizer = new TelephoneNumberNormalizer();
-       assertEquals( "1", normalizer.normalize( "1" ) );
-   }
-
-   public void testInsignifiantSpacesStringTwoChars() throws NamingException
-   {
-       Normalizer normalizer = new TelephoneNumberNormalizer();
-       assertEquals( "11", normalizer.normalize( "11" ) );
-   }
-
-   public void testInsignifiantSpacesStringNChars() throws NamingException
-   {
-       Normalizer normalizer = new TelephoneNumberNormalizer();
-       assertEquals( "123456", normalizer.normalize( "123456" ) );
-   }
-
-   public void testInsignifiantTelephoneNumberCharsSpaces() throws NamingException
-   {
-       Normalizer normalizer = new TelephoneNumberNormalizer();
-       assertEquals( "1", normalizer.normalize( " 1" ) );
-       assertEquals( "1", normalizer.normalize( "1 " ) );
-       assertEquals( "1", normalizer.normalize( " 1 " ) );
-       assertEquals( "11", normalizer.normalize( "1 1" ) );
-       assertEquals( "11", normalizer.normalize( " 1 1" ) );
-       assertEquals( "11", normalizer.normalize( "1 1 " ) );
-       assertEquals( "11", normalizer.normalize( "1  1" ) );
-       assertEquals( "11", normalizer.normalize( " 1   1 " ) );
-       assertEquals( "123456789", normalizer.normalize( "  123   456   789  " ) );
-       assertEquals( "1", normalizer.normalize( "-1" ) );
-       assertEquals( "1", normalizer.normalize( "1-" ) );
-       assertEquals( "1", normalizer.normalize( "-1-" ) );
-       assertEquals( "11", normalizer.normalize( "1-1" ) );
-       assertEquals( "11", normalizer.normalize( "-1-1" ) );
-       assertEquals( "11", normalizer.normalize( "1-1-" ) );
-       assertEquals( "11", normalizer.normalize( "1--1" ) );
-       assertEquals( "11", normalizer.normalize( "-1---1-" ) );
-       assertEquals( "1(2)+3456789", normalizer.normalize( "---1(2)+3   456-  789 --" ) );
-   }
+    @Test
+    public void testTelephoneNumberNormalizerNull() throws NamingException
+    {
+        Normalizer normalizer = new TelephoneNumberNormalizer();
+        assertEquals( "", normalizer.normalize( ( String ) null ) );
+    }
+
+
+    @Test
+    public void testTelephoneNumberNormalizerEmpty() throws NamingException
+    {
+        Normalizer normalizer = new TelephoneNumberNormalizer();
+        assertEquals( "", normalizer.normalize( "" ) );
+    }
+
+
+    @Test
+    public void testTelephoneNumberNormalizerOneSpace() throws NamingException
+    {
+        Normalizer normalizer = new TelephoneNumberNormalizer();
+        assertEquals( "", normalizer.normalize( " " ) );
+    }
+
+
+    @Test
+    public void testTelephoneNumberNormalizerTwoSpaces() throws NamingException
+    {
+        Normalizer normalizer = new TelephoneNumberNormalizer();
+        assertEquals( "", normalizer.normalize( "  " ) );
+    }
+
+
+    @Test
+    public void testTelephoneNumberNormalizerNSpaces() throws NamingException
+    {
+        Normalizer normalizer = new TelephoneNumberNormalizer();
+        assertEquals( "", normalizer.normalize( "      " ) );
+    }
+
+
+    @Test
+    public void testTelephoneNumberNormalizerOneHyphen() throws NamingException
+    {
+        Normalizer normalizer = new TelephoneNumberNormalizer();
+        assertEquals( "", normalizer.normalize( "-" ) );
+    }
+
+
+    @Test
+    public void testTelephoneNumberNormalizerTwoHyphen() throws NamingException
+    {
+        Normalizer normalizer = new TelephoneNumberNormalizer();
+        assertEquals( "", normalizer.normalize( "--" ) );
+    }
+
+
+    @Test
+    public void testTelephoneNumberNormalizerHyphensSpaces() throws NamingException
+    {
+        Normalizer normalizer = new TelephoneNumberNormalizer();
+        assertEquals( "", normalizer.normalize( " -- - -- " ) );
+    }
+
+
+    @Test
+    public void testInsignifiantSpacesStringOneChar() throws NamingException
+    {
+        Normalizer normalizer = new TelephoneNumberNormalizer();
+        assertEquals( "1", normalizer.normalize( "1" ) );
+    }
+
+
+    @Test
+    public void testInsignifiantSpacesStringTwoChars() throws NamingException
+    {
+        Normalizer normalizer = new TelephoneNumberNormalizer();
+        assertEquals( "11", normalizer.normalize( "11" ) );
+    }
+
+
+    @Test
+    public void testInsignifiantSpacesStringNChars() throws NamingException
+    {
+        Normalizer normalizer = new TelephoneNumberNormalizer();
+        assertEquals( "123456", normalizer.normalize( "123456" ) );
+    }
+
+
+    @Test
+    public void testInsignifiantTelephoneNumberCharsSpaces() throws NamingException
+    {
+        Normalizer normalizer = new TelephoneNumberNormalizer();
+        assertEquals( "1", normalizer.normalize( " 1" ) );
+        assertEquals( "1", normalizer.normalize( "1 " ) );
+        assertEquals( "1", normalizer.normalize( " 1 " ) );
+        assertEquals( "11", normalizer.normalize( "1 1" ) );
+        assertEquals( "11", normalizer.normalize( " 1 1" ) );
+        assertEquals( "11", normalizer.normalize( "1 1 " ) );
+        assertEquals( "11", normalizer.normalize( "1  1" ) );
+        assertEquals( "11", normalizer.normalize( " 1   1 " ) );
+        assertEquals( "123456789", normalizer.normalize( "  123   456   789  " ) );
+        assertEquals( "1", normalizer.normalize( "-1" ) );
+        assertEquals( "1", normalizer.normalize( "1-" ) );
+        assertEquals( "1", normalizer.normalize( "-1-" ) );
+        assertEquals( "11", normalizer.normalize( "1-1" ) );
+        assertEquals( "11", normalizer.normalize( "-1-1" ) );
+        assertEquals( "11", normalizer.normalize( "1-1-" ) );
+        assertEquals( "11", normalizer.normalize( "1--1" ) );
+        assertEquals( "11", normalizer.normalize( "-1---1-" ) );
+        assertEquals( "1(2)+3456789", normalizer.normalize( "---1(2)+3   456-  789 --" ) );
+    }
 }
\ No newline at end of file

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/UsageEnumTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/UsageEnumTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/UsageEnumTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/UsageEnumTest.java Sat Apr 11 01:03:00 2009
@@ -19,7 +19,8 @@
  */
 package org.apache.directory.shared.ldap.schema;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertEquals;
 
 /**
  * The unit tests for methods on UsageEnum.
@@ -27,8 +28,9 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev: 485048 $
  */
-public class UsageEnumTest extends TestCase
+public class UsageEnumTest
 {
+    @Test
     public void testGetValue()
     {
         assertEquals( 0, UsageEnum.USER_APPLICATIONS.getValue() );
@@ -37,6 +39,7 @@
         assertEquals( 3, UsageEnum.DSA_OPERATION.getValue() );
     }
     
+    @Test
     public void testGetUsage()
     {
         assertEquals( UsageEnum.DIRECTORY_OPERATION, UsageEnum.getUsage( "directoryOperation" ) );
@@ -46,6 +49,7 @@
         assertEquals( null, UsageEnum.getUsage( "azerty" ) );
     }
     
+    @Test
     public void testRenderer()
     {
         assertEquals( "directoryOperation", UsageEnum.render( UsageEnum.DIRECTORY_OPERATION ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/parser/OpenLdapSchemaParserTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/parser/OpenLdapSchemaParserTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/parser/OpenLdapSchemaParserTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/parser/OpenLdapSchemaParserTest.java Sat Apr 11 01:03:00 2009
@@ -26,13 +26,19 @@
 import java.util.List;
 import java.util.Map;
 
-import junit.framework.TestCase;
-
 import org.apache.directory.shared.ldap.schema.ObjectClassTypeEnum;
 import org.apache.directory.shared.ldap.schema.parsers.AttributeTypeLiteral;
 import org.apache.directory.shared.ldap.schema.parsers.ObjectClassLiteral;
 import org.apache.directory.shared.ldap.schema.parsers.OpenLdapSchemaParser;
 import org.apache.directory.shared.ldap.schema.syntaxes.OpenLdapObjectIdentifierMacro;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
 
 
 /**
@@ -41,27 +47,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev: 437016 $
  */
-public class OpenLdapSchemaParserTest extends TestCase
+public class OpenLdapSchemaParserTest
 {
     private OpenLdapSchemaParser parser;
 
-
-    protected void setUp() throws Exception
+    @Before
+    public void setUp() throws Exception
     {
-        super.setUp();
-
         parser = new OpenLdapSchemaParser();
         parser.setParserMonitor( new ConsoleParserMonitor() );
     }
 
 
-    protected void tearDown() throws Exception
+    @After
+    public void tearDown() throws Exception
     {
-        super.tearDown();
         parser = null;
     }
 
 
+    @Test
     public void testSimpleAttributeTypeNoLength() throws Exception
     {
         String attributeTypeData = "attributetype ( 2.5.4.14 NAME 'searchGuide'\n"
@@ -94,6 +99,7 @@
     }
 
 
+    @Test
     public void testSimpleAttributeTypeParse() throws Exception
     {
         String attributeTypeData = "# adding a comment  \n" + "attributetype ( 2.5.4.2 NAME 'knowledgeInformation'\n"
@@ -113,6 +119,7 @@
     }
 
 
+    @Test
     public void testAttributeTypeParseWithDescQuotes() throws Exception
     {
         String attributeTypeData = "# adding a comment  \n" + "attributetype ( 2.5.4.2 NAME 'knowledgeInformation'\n"
@@ -132,6 +139,7 @@
     }
 
 
+    @Test
     public void testComplexAttributeTypeParse() throws Exception
     {
         String attributeTypeData = "# adding a comment  \n"
@@ -165,6 +173,7 @@
     }
 
 
+    @Test
     public void testObjectClassParse() throws Exception
     {
         String objectClassData = "objectclass ( 2.5.6.6 NAME 'person'\n" + "        DESC 'RFC2256: a person'\n"
@@ -189,6 +198,7 @@
     }
 
 
+    @Test
     public void testObjectClassMultipleNames() throws Exception
     {
         String objectClassData = "objectclass ( 0.9.2342.19200300.100.4.4\n"
@@ -234,6 +244,7 @@
     }
 
 
+    @Test
     public void testParseOpenLdapCoreSchema() throws Exception
     {
         InputStream input = getClass().getResourceAsStream( "core.schema" );
@@ -249,6 +260,7 @@
     }
 
 
+    @Test
     public void testParseOpenLdapInetOrgPersonSchema() throws Exception
     {
         InputStream input = getClass().getResourceAsStream( "inetorgperson.schema" );
@@ -264,6 +276,7 @@
     }
 
 
+    @Test
     public void testParseOpenLdapCollectiveSchema() throws Exception
     {
         InputStream input = getClass().getResourceAsStream( "collective.schema" );
@@ -283,6 +296,7 @@
     }
 
 
+    @Test
     public void testOpenLdapObjectIdentifiereMacros() throws Exception
     {
         InputStream input = getClass().getResourceAsStream( "dyngroup.schema" );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,11 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.ACIItemSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
+
 
 /**
  * Test cases for ACIItemSyntaxChecker.
@@ -29,27 +33,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class ACIItemSyntaxCheckerTest extends TestCase
+public class ACIItemSyntaxCheckerTest
 {
     ACIItemSyntaxChecker checker = new ACIItemSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
+    @Test
     public void testOid()
     {
         assertEquals( "1.3.6.1.4.1.1466.115.121.1.1", checker.getSyntaxOid() );
     }
 
+    @Test
     public void testCorrectCase()
     {
     }
@@ -57,6 +65,7 @@
     /**
      * Tests the checker with an ACIItem of ItemFirst main component.
      */
+    @Test
     public void testItemFirst()
     {
         String spec = " {  identificationTag  \"id1\" , precedence 114  , authenticationLevel simple  , "
@@ -75,6 +84,7 @@
     /**
      * Tests the checker with an ACIItem of UserFirst main component.
      */
+    @Test
     public void testUserFirst()
     {
         String spec = "{ identificationTag \"id2\"   , precedence 14, authenticationLevel none  , "
@@ -88,6 +98,7 @@
     }
 
 
+    @Test
     public void testAllowAddAllUsers()
     {
         String spec = "{ identificationTag \"addAci\", " + "precedence 14, " + "authenticationLevel none, "
@@ -98,6 +109,7 @@
     }
 
 
+    @Test
     public void testCombo()
     {
         String spec = "{ identificationTag \"addAci\", " + "precedence 14, " + "authenticationLevel none, "
@@ -108,6 +120,7 @@
     }
 
 
+    @Test
     public void testOrderOfProtectedItemsDoesNotMatter()
     {
         String spec = " {  identificationTag  \"id1\" , precedence 114  , authenticationLevel simple  , "
@@ -123,6 +136,7 @@
     }
 
 
+    @Test
     public void testOrderOfUserClassesDoesNotMatter()
     {
         String spec = "{ identificationTag \"id2\"   , precedence 14, authenticationLevel none  , "
@@ -136,6 +150,7 @@
     }
 
 
+    @Test
     public void testItemPermissionComponentsOrderDoesNotMatter()
     {
         String spec = " {  identificationTag  \"id1\" , precedence 114  , authenticationLevel simple  , "
@@ -151,6 +166,7 @@
     }
 
 
+    @Test
     public void testUserPermissionComponentsOrderDoesNotMatter()
     {
         String spec = "{ identificationTag \"id2\"   , precedence 14, authenticationLevel none  , "
@@ -164,6 +180,7 @@
     }
 
 
+    @Test
     public void testOrderOfMainACIComponentsDoesNotMatter()
     {
         String spec = "{   itemOrUserFirst userFirst:  { userClasses {  allUsers  , name { \"ou=people,cn=ersin\" }, "
@@ -177,6 +194,7 @@
     }
 
 
+    @Test
     public void testUserFirstComponentsOrderDoesNotMatter()
     {
         String spec = "{ identificationTag \"id2\"   , precedence 14, authenticationLevel none  , "
@@ -189,6 +207,7 @@
     }
 
 
+    @Test
     public void testItemFirstComponentsOrderDoesNotMatter()
     {
         String spec = " {  identificationTag  \"id1\" , precedence 114  , authenticationLevel simple  , "
@@ -203,6 +222,7 @@
     }
 
 
+    @Test
     public void testRestrictedValueComponentsOrderDoesNotMatter()
     {
         String spec = "{ identificationTag \"id2\"   , precedence 14, authenticationLevel none  , "
@@ -216,6 +236,7 @@
     }
 
 
+    @Test
     public void testMaxValueCountComponentsOrderDoesNotMatter()
     {
         String spec = "{ identificationTag \"id2\"   , precedence 14, authenticationLevel none  , "
@@ -229,6 +250,7 @@
     }
 
 
+    @Test
     public void testSubtreeSpecificationComponentsOrderDoesNotMatter()
     {
         String spec = "{ identificationTag \"id2\"   , precedence 14, authenticationLevel none  , "
@@ -243,6 +265,7 @@
     /**
      * Test case for DIRSERVER-891
      */
+    @Test
     public void testInvalidAttributeValue()
     {
         String spec;
@@ -267,6 +290,7 @@
     /**
      * Test case for DIRSERVER-891
      */
+    @Test
     public void testIncomplete()
     {
         String spec;

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AccessPointSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AccessPointSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AccessPointSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AccessPointSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.AccessPointSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 
 /**
  * Test cases for AccessPointSyntaxChecker.
@@ -29,27 +31,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class AccessPointSyntaxCheckerTest extends TestCase
+public class AccessPointSyntaxCheckerTest
 {
     AccessPointSyntaxChecker checker = new AccessPointSyntaxChecker();
 
-
+    @Test
     public void testNullString()
     {
         assertTrue( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertTrue( checker.isValidSyntax( "" ) );
     }
 
+    
+    @Test
     public void testOid()
     {
         assertEquals( "1.3.6.1.4.1.1466.115.121.1.2", checker.getSyntaxOid() );
     }
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "FALSE" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AttributeTypeDescriptionSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AttributeTypeDescriptionSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AttributeTypeDescriptionSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AttributeTypeDescriptionSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -22,7 +22,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.AttributeTypeDescriptionSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 
 /**
@@ -33,10 +35,11 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class AttributeTypeDescriptionSyntaxCheckerTest extends TestCase
+public class AttributeTypeDescriptionSyntaxCheckerTest
 {
     private AttributeTypeDescriptionSyntaxChecker checker = new AttributeTypeDescriptionSyntaxChecker();
 
+    @Test
     public void testValid()
     {
         assertTrue( checker.isValidSyntax( "( 2.5.4.3 NAME 'cn' SUP name )" ) );
@@ -65,6 +68,7 @@
     }
 
 
+    @Test
     public void testInvalid()
     {
         // null 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AudioSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AudioSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AudioSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AudioSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.AudioSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 
 /**
  * Test cases for AudioSyntaxChecker.
@@ -29,27 +31,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class AudioSyntaxCheckerTest extends TestCase
+public class AudioSyntaxCheckerTest
 {
     AudioSyntaxChecker checker = new AudioSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertTrue( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertTrue( checker.isValidSyntax( "" ) );
     }
 
+    @Test
     public void testOid()
     {
         assertEquals( "1.3.6.1.4.1.1466.115.121.1.4", checker.getSyntaxOid() );
     }
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "FALSE" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BinarySyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BinarySyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BinarySyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BinarySyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.BinarySyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 
 /**
  * Test cases for BinarySyntaxChecker.
@@ -29,27 +31,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class BinarySyntaxCheckerTest extends TestCase
+public class BinarySyntaxCheckerTest
 {
     BinarySyntaxChecker checker = new BinarySyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertTrue( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertTrue( checker.isValidSyntax( "" ) );
     }
 
+    @Test
     public void testOid()
     {
         assertEquals( "1.3.6.1.4.1.1466.115.121.1.5", checker.getSyntaxOid() );
     }
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "FALSE" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BitStringSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BitStringSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BitStringSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BitStringSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -22,7 +22,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.BitStringSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for BitStringSyntaxChecker.
@@ -30,23 +32,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class BitStringSyntaxCheckerTest extends TestCase
+public class BitStringSyntaxCheckerTest
 {
     BitStringSyntaxChecker checker = new BitStringSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
 
+    @Test
     public void testOneCharString()
     {
         assertFalse( checker.isValidSyntax( "0" ) );
@@ -56,6 +61,7 @@
     }
     
     
+    @Test
     public void testWrongCase()
     {
         assertFalse( checker.isValidSyntax( "'0101B" ) );
@@ -68,6 +74,7 @@
     }
     
     
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "'0'B" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BooleanSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BooleanSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BooleanSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BooleanSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.BooleanSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for BooleanSyntaxChecker.
@@ -29,23 +31,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class BooleanSyntaxCheckerTest extends TestCase
+public class BooleanSyntaxCheckerTest
 {
     BooleanSyntaxChecker checker = new BooleanSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
 
+    @Test
     public void testOneCharString()
     {
         assertFalse( checker.isValidSyntax( "f" ) );
@@ -55,6 +60,7 @@
     }
     
     
+    @Test
     public void testWrongValue()
     {
         assertFalse( checker.isValidSyntax( "abc" ) );
@@ -62,6 +68,7 @@
     }
     
     
+    @Test
     public void testMixedCase()
     {
         assertTrue( checker.isValidSyntax( "fAlSe" ) );
@@ -71,6 +78,7 @@
     }
     
     
+    @Test
     public void testUpperCase()
     {
         assertTrue( checker.isValidSyntax( "FALSE" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateListSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateListSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateListSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateListSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.CertificateListSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 
 /**
  * Test cases for CertificateListSyntaxChecker.
@@ -29,27 +31,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class CertificateListSyntaxCheckerTest extends TestCase
+public class CertificateListSyntaxCheckerTest
 {
     CertificateListSyntaxChecker checker = new CertificateListSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertTrue( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertTrue( checker.isValidSyntax( "" ) );
     }
 
+    @Test
     public void testOid()
     {
         assertEquals( "1.3.6.1.4.1.1466.115.121.1.9", checker.getSyntaxOid() );
     }
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "FALSE" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificatePairSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificatePairSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificatePairSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificatePairSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.CertificatePairSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 
 /**
  * Test cases for CertificatePairSyntaxChecker.
@@ -29,27 +31,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class CertificatePairSyntaxCheckerTest extends TestCase
+public class CertificatePairSyntaxCheckerTest
 {
     CertificatePairSyntaxChecker checker = new CertificatePairSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertTrue( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertTrue( checker.isValidSyntax( "" ) );
     }
 
+    @Test
     public void testOid()
     {
         assertEquals( "1.3.6.1.4.1.1466.115.121.1.10", checker.getSyntaxOid() );
     }
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "FALSE" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.CertificateSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 
 /**
  * Test cases for CertificateSyntaxChecker.
@@ -29,27 +31,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class CertificateSyntaxCheckerTest extends TestCase
+public class CertificateSyntaxCheckerTest
 {
     CertificateSyntaxChecker checker = new CertificateSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertTrue( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertTrue( checker.isValidSyntax( "" ) );
     }
 
+    @Test
     public void testOid()
     {
         assertEquals( "1.3.6.1.4.1.1466.115.121.1.8", checker.getSyntaxOid() );
     }
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "FALSE" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CountrySyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CountrySyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CountrySyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CountrySyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -22,7 +22,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.CountrySyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for BitStringSyntaxChecker.
@@ -30,23 +32,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class CountrySyntaxCheckerTest extends TestCase
+public class CountrySyntaxCheckerTest
 {
     CountrySyntaxChecker checker = new CountrySyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
 
+    @Test
     public void testOneCharString()
     {
         assertFalse( checker.isValidSyntax( "0" ) );
@@ -56,6 +61,7 @@
     }
     
     
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "AF" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITContentRuleDescriptionSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITContentRuleDescriptionSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITContentRuleDescriptionSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITContentRuleDescriptionSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -22,7 +22,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.DITContentRuleDescriptionSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 
 /**
@@ -33,11 +35,12 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class DITContentRuleDescriptionSyntaxCheckerTest extends TestCase
+public class DITContentRuleDescriptionSyntaxCheckerTest
 {
     private DITContentRuleDescriptionSyntaxChecker checker = new DITContentRuleDescriptionSyntaxChecker();
 
 
+    @Test
     public void testValid()
     {
         assertTrue( checker.isValidSyntax( "( 2.5.6.4 )" ) );
@@ -65,6 +68,7 @@
     }
 
 
+    @Test
     public void testInvalid()
     {
         // null 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITStructureRuleDescriptionSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITStructureRuleDescriptionSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITStructureRuleDescriptionSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITStructureRuleDescriptionSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -22,7 +22,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.DITStructureRuleDescriptionSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 
 /**
@@ -33,11 +35,12 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class DITStructureRuleDescriptionSyntaxCheckerTest extends TestCase
+public class DITStructureRuleDescriptionSyntaxCheckerTest
 {
     private DITStructureRuleDescriptionSyntaxChecker checker = new DITStructureRuleDescriptionSyntaxChecker();
 
 
+    @Test
     public void testValid()
     {
         assertTrue( checker.isValidSyntax( "( 2 FORM 2.5.15.3 )" ) );
@@ -64,6 +67,7 @@
     }
 
 
+    @Test
     public void testInvalid()
     {
         // null 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DLSubmitPermissionSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DLSubmitPermissionSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DLSubmitPermissionSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DLSubmitPermissionSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.DLSubmitPermissionSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 
 /**
  * Test cases for DLSubmitPermissionSyntaxChecker.
@@ -29,27 +31,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class DLSubmitPermissionSyntaxCheckerTest extends TestCase
+public class DLSubmitPermissionSyntaxCheckerTest
 {
     DLSubmitPermissionSyntaxChecker checker = new DLSubmitPermissionSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertTrue( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertTrue( checker.isValidSyntax( "" ) );
     }
 
+    @Test
     public void testOid()
     {
         assertEquals( "1.3.6.1.4.1.1466.115.121.1.18", checker.getSyntaxOid() );
     }
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "FALSE" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -22,7 +22,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.DNSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for DNSyntaxChecker.
@@ -30,23 +32,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class DNSyntaxCheckerTest extends TestCase
+public class DNSyntaxCheckerTest
 {
     DNSyntaxChecker checker = new DNSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertTrue( checker.isValidSyntax( "" ) );
     }
 
 
+    @Test
     public void testOneCharString()
     {
         assertFalse( checker.isValidSyntax( "0" ) );
@@ -56,6 +61,7 @@
     }
     
     
+    @Test
     public void testWrongDN()
     {
         assertFalse( checker.isValidSyntax( "a=b," ) );
@@ -65,6 +71,7 @@
     }
     
     
+    @Test
     public void testCorrectDN()
     {
         assertTrue( checker.isValidSyntax( "a=b" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSAQualitySyntaxSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSAQualitySyntaxSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSAQualitySyntaxSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSAQualitySyntaxSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.DSAQualitySyntaxSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for DSAQualitySyntaxSyntaxChecker.
@@ -29,23 +31,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class DSAQualitySyntaxSyntaxCheckerTest extends TestCase
+public class DSAQualitySyntaxSyntaxCheckerTest
 {
     DSAQualitySyntaxSyntaxChecker checker = new DSAQualitySyntaxSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
 
+    @Test
     public void testWrongCase()
     {
         assertFalse( checker.isValidSyntax( "Bad" ) );
@@ -56,6 +61,7 @@
     }
     
     
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "DEFUNCT" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSETypeSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSETypeSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSETypeSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSETypeSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.DSETypeSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for DSETypeSyntaxChecker.
@@ -29,23 +31,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class DSETypeSyntaxCheckerTest extends TestCase
+public class DSETypeSyntaxCheckerTest
 {
     DSETypeSyntaxChecker checker = new DSETypeSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
 
+    @Test
     public void testWrongCase()
     {
         assertFalse( checker.isValidSyntax( "()" ) );
@@ -61,6 +66,7 @@
     }
     
     
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "(sa)" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DataQualitySyntaxSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DataQualitySyntaxSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DataQualitySyntaxSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DataQualitySyntaxSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.DataQualitySyntaxSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 
 /**
  * Test cases for DataQualitySyntaxSyntaxChecker.
@@ -29,27 +31,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class DataQualitySyntaxSyntaxCheckerTest extends TestCase
+public class DataQualitySyntaxSyntaxCheckerTest
 {
     DataQualitySyntaxSyntaxChecker checker = new DataQualitySyntaxSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertTrue( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertTrue( checker.isValidSyntax( "" ) );
     }
 
+    @Test
     public void testOid()
     {
         assertEquals( "1.3.6.1.4.1.1466.115.121.1.13", checker.getSyntaxOid() );
     }
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "FALSE" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DeliveryMethodSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DeliveryMethodSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DeliveryMethodSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DeliveryMethodSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -22,7 +22,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.DeliveryMethodSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for DeliveryMethodSyntaxChecker.
@@ -30,23 +32,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class DeliveryMethodSyntaxCheckerTest extends TestCase
+public class DeliveryMethodSyntaxCheckerTest
 {
     DeliveryMethodSyntaxChecker checker = new DeliveryMethodSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
 
+    @Test
     public void testOneCharString()
     {
         assertFalse( checker.isValidSyntax( "0" ) );
@@ -55,6 +60,7 @@
         assertFalse( checker.isValidSyntax( "B" ) );
     }
     
+    @Test
     public void testWrongCase()
     {
         assertFalse( checker.isValidSyntax( "fAlSe" ) );
@@ -69,6 +75,7 @@
     }
 
     
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "any" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DirectoryStringSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DirectoryStringSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DirectoryStringSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DirectoryStringSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.DirectoryStringSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for DirectoryStringSyntaxChecker.
@@ -29,23 +31,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class DirectoryStringSyntaxCheckerTest extends TestCase
+public class DirectoryStringSyntaxCheckerTest
 {
     DirectoryStringSyntaxChecker checker = new DirectoryStringSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
 
+    @Test
     public void testWrongCase()
     {
         assertFalse( checker.isValidSyntax( "" ) );
@@ -59,6 +64,7 @@
     }
     
     
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "0123456789" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/EnhancedGuideSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/EnhancedGuideSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/EnhancedGuideSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/EnhancedGuideSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.EnhancedGuideSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 
 /**
  * Test cases for EnhancedGuideSyntaxChecker.
@@ -29,27 +31,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class EnhancedGuideSyntaxCheckerTest extends TestCase
+public class EnhancedGuideSyntaxCheckerTest
 {
     EnhancedGuideSyntaxChecker checker = new EnhancedGuideSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertTrue( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertTrue( checker.isValidSyntax( "" ) );
     }
 
+    @Test
     public void testOid()
     {
         assertEquals( "1.3.6.1.4.1.1466.115.121.1.21", checker.getSyntaxOid() );
     }
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "FALSE" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FacsimileTelephoneNumberSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FacsimileTelephoneNumberSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FacsimileTelephoneNumberSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FacsimileTelephoneNumberSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.FacsimileTelephoneNumberSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for FacsimileTelephoneNumberSyntaxChecker.
@@ -29,23 +31,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class FacsimileTelephoneNumberSyntaxCheckerTest extends TestCase
+public class FacsimileTelephoneNumberSyntaxCheckerTest
 {
     FacsimileTelephoneNumberSyntaxChecker checker = new FacsimileTelephoneNumberSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
 
+    @Test
     public void testOneCharString()
     {
         assertFalse( checker.isValidSyntax( "A" ) );
@@ -53,6 +58,7 @@
     }
     
     
+    @Test
     public void testWrongCase()
     {
         assertFalse( checker.isValidSyntax( "123 456 f" ) );
@@ -61,6 +67,7 @@
     }
     
     
+    @Test
     public void testCorrectTelephoneNumber()
     {
         assertTrue( checker.isValidSyntax( "1" ) );
@@ -70,6 +77,7 @@
         assertTrue( checker.isValidSyntax( " 12 34 56 78 90 " ) );
     }
     
+    @Test
     public void testWithNewMandatoryRegexp()
     {
         // Adding french telephone number regexp
@@ -83,6 +91,7 @@
         assertFalse( checker.isValidSyntax( " 01 / 02 .03 04--  05 " ) );
     }
 
+    @Test
     public void testCorrectTelephoneNumberAndFaxParam()
     {
         assertTrue( checker.isValidSyntax( "+ 33 1 (456) 7891   12345$twoDimensional" ) );
@@ -95,11 +104,13 @@
         assertTrue( checker.isValidSyntax( "+ 33 1 (456) 7891   12345$uncompressed" ) );
     }
     
+    @Test
     public void testCorrectTelephoneNumberAndFaxParams()
     {
         assertTrue( checker.isValidSyntax( "+ 33 1 (456) 7891   12345$twoDimensional$fineResolution$a3Width" ) );
     }
 
+    @Test
     public void testCorrectTelephoneNumberBadFaxParams()
     {
         assertFalse( checker.isValidSyntax( "+ 33 1 (456) 7891   12345$" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FaxSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FaxSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FaxSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FaxSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.FaxSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 
 /**
  * Test cases for FaxSyntaxChecker.
@@ -29,27 +31,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class FaxSyntaxCheckerTest extends TestCase
+public class FaxSyntaxCheckerTest
 {
     FaxSyntaxChecker checker = new FaxSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertTrue( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertTrue( checker.isValidSyntax( "" ) );
     }
 
+    @Test
     public void testOid()
     {
         assertEquals( "1.3.6.1.4.1.1466.115.121.1.23", checker.getSyntaxOid() );
     }
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "FALSE" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GeneralizedTimeSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GeneralizedTimeSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GeneralizedTimeSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GeneralizedTimeSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -22,7 +22,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.GeneralizedTimeSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for GeneralizedTimeSyntaxChecker.
@@ -30,23 +32,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class GeneralizedTimeSyntaxCheckerTest extends TestCase
+public class GeneralizedTimeSyntaxCheckerTest
 {
     GeneralizedTimeSyntaxChecker checker = new GeneralizedTimeSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
 
+    @Test
     public void testOneCharString()
     {
         assertFalse( checker.isValidSyntax( "0" ) );
@@ -55,6 +60,7 @@
         assertFalse( checker.isValidSyntax( "B" ) );
     }
     
+    @Test
     public void testErrorCase()
     {
         assertFalse( checker.isValidSyntax( "20060005184527Z" ) );
@@ -72,6 +78,7 @@
         assertFalse( checker.isValidSyntax( "20061205184527+1299" ) );
     }
     
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "20061205184527Z" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GuideSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GuideSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GuideSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GuideSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.GuideSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 
 /**
  * Test cases for GuideSyntaxChecker.
@@ -29,27 +31,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class GuideSyntaxCheckerTest extends TestCase
+public class GuideSyntaxCheckerTest
 {
     GuideSyntaxChecker checker = new GuideSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertTrue( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertTrue( checker.isValidSyntax( "" ) );
     }
 
+    @Test
     public void testOid()
     {
         assertEquals( "1.3.6.1.4.1.1466.115.121.1.25", checker.getSyntaxOid() );
     }
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "FALSE" ) );

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/Ia5StringSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/Ia5StringSyntaxCheckerTest.java?rev=764131&r1=764130&r2=764131&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/Ia5StringSyntaxCheckerTest.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/Ia5StringSyntaxCheckerTest.java Sat Apr 11 01:03:00 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.Ia5StringSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for Ia5StringSyntaxChecker.
@@ -29,23 +31,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class Ia5StringSyntaxCheckerTest extends TestCase
+public class Ia5StringSyntaxCheckerTest
 {
     Ia5StringSyntaxChecker checker = new Ia5StringSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
 
+    @Test
     public void testWrongCase()
     {
         assertFalse( checker.isValidSyntax( "\u00E9" ) );
@@ -62,6 +67,7 @@
     }
     
     
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "0123456789" ) );



Mime
View raw message