directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r754565 [1/2] - /directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/
Date Sun, 15 Mar 2009 00:17:40 GMT
Author: elecharny
Date: Sun Mar 15 00:17:36 2009
New Revision: 754565

URL: http://svn.apache.org/viewvc?rev=754565&view=rev
Log:
Switched to JUNIT 4.4

Modified:
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AccessPointSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AttributeTypeDescriptionSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AudioSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BinarySyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BitStringSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BooleanSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateListSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificatePairSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CountrySyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITContentRuleDescriptionSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITStructureRuleDescriptionSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DLSubmitPermissionSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSAQualitySyntaxSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSETypeSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DataQualitySyntaxSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DeliveryMethodSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DirectoryStringSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/EnhancedGuideSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FacsimileTelephoneNumberSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FaxSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GeneralizedTimeSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GuideSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/Ia5StringSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/IntegerSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaByteSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaIntegerSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaLongSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaShortSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JpegSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/LdapSyntaxDescriptionSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MHSORAddressSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MailPreferenceSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MasterAndShadowAccessPointSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MatchingRuleDescriptionSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MatchingRuleUseDescriptionSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/NameAndOptionalUIDSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/NameFormDescriptionSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/NameOrNumericIdSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/NumericStringSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ObjectClassDescriptionSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ObjectClassTypeSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ObjectNameSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/OctetStringSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/OtherMailboxSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/PostalAddressSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/PresentationAddressSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/PrintableStringSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ProtocolInformationSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SubstringAssertionSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SubtreeSpecificationSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SupplierAndConsumerSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SupplierInformationSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SupplierOrConsumerSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SupportedAlgorithmSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/TelephoneNumberSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/TeletexTerminalIdentifierSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/TelexNumberSyntaxCheckerTest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/UtcTimeSyntaxCheckerTest.java

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/ACIItemSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AccessPointSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AccessPointSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AccessPointSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AccessPointSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AttributeTypeDescriptionSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AttributeTypeDescriptionSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AttributeTypeDescriptionSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AttributeTypeDescriptionSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AudioSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AudioSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AudioSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/AudioSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BinarySyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BinarySyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BinarySyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BinarySyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BitStringSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BitStringSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BitStringSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BitStringSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BooleanSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BooleanSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BooleanSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/BooleanSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateListSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateListSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateListSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateListSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificatePairSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificatePairSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificatePairSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificatePairSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CertificateSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CountrySyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CountrySyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CountrySyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/CountrySyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITContentRuleDescriptionSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITContentRuleDescriptionSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITContentRuleDescriptionSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITContentRuleDescriptionSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITStructureRuleDescriptionSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITStructureRuleDescriptionSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITStructureRuleDescriptionSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DITStructureRuleDescriptionSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DLSubmitPermissionSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DLSubmitPermissionSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DLSubmitPermissionSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DLSubmitPermissionSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DNSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSAQualitySyntaxSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSAQualitySyntaxSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSAQualitySyntaxSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSAQualitySyntaxSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSETypeSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSETypeSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSETypeSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DSETypeSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DataQualitySyntaxSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DataQualitySyntaxSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DataQualitySyntaxSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DataQualitySyntaxSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DeliveryMethodSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DeliveryMethodSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DeliveryMethodSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DeliveryMethodSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DirectoryStringSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DirectoryStringSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DirectoryStringSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/DirectoryStringSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/EnhancedGuideSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/EnhancedGuideSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/EnhancedGuideSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/EnhancedGuideSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FacsimileTelephoneNumberSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FacsimileTelephoneNumberSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FacsimileTelephoneNumberSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FacsimileTelephoneNumberSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FaxSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FaxSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FaxSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/FaxSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GeneralizedTimeSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GeneralizedTimeSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GeneralizedTimeSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GeneralizedTimeSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GuideSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GuideSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GuideSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/GuideSyntaxCheckerTest.java Sun Mar 15 00:17:36 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/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/Ia5StringSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/Ia5StringSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/Ia5StringSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/Ia5StringSyntaxCheckerTest.java Sun Mar 15 00:17:36 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" ) );

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/IntegerSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/IntegerSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/IntegerSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/IntegerSyntaxCheckerTest.java Sun Mar 15 00:17:36 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.IntegerSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for IntegerSyntaxChecker.
@@ -29,23 +31,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class IntegerSyntaxCheckerTest extends TestCase
+public class IntegerSyntaxCheckerTest
 {
     IntegerSyntaxChecker checker = new IntegerSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
 
+    @Test
     public void testOneCharString()
     {
         assertFalse( checker.isValidSyntax( "f" ) );
@@ -53,6 +58,7 @@
     }
     
     
+    @Test
     public void testWrongCase()
     {
         assertFalse( checker.isValidSyntax( "000" ) );
@@ -62,6 +68,7 @@
     }
     
     
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "1" ) );

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaByteSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaByteSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaByteSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaByteSyntaxCheckerTest.java Sun Mar 15 00:17:36 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.JavaByteSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for JavaByteSyntaxChecker.
@@ -29,23 +31,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class JavaByteSyntaxCheckerTest extends TestCase
+public class JavaByteSyntaxCheckerTest
 {
     JavaByteSyntaxChecker checker = new JavaByteSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
 
+    @Test
     public void testOneCharString()
     {
         assertFalse( checker.isValidSyntax( "f" ) );
@@ -53,6 +58,7 @@
     }
 
 
+    @Test
     public void testWrongCase()
     {
         assertFalse( checker.isValidSyntax( "000" ) );
@@ -62,6 +68,7 @@
     }
 
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "1" ) );
@@ -73,6 +80,7 @@
     }
 
 
+    @Test
     public void testMinValueBoundry()
     {
         int min = Byte.MIN_VALUE;
@@ -84,6 +92,7 @@
     }
 
 
+    @Test
     public void testMaxValueBoundry()
     {
         int max = Byte.MAX_VALUE;

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaIntegerSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaIntegerSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaIntegerSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaIntegerSyntaxCheckerTest.java Sun Mar 15 00:17:36 2009
@@ -19,11 +19,12 @@
  */
 package org.apache.directory.shared.ldap.schema.syntax;
 
-import junit.framework.TestCase;
-
 import java.math.BigInteger;
 
 import org.apache.directory.shared.ldap.schema.syntaxes.JavaIntegerSyntaxChecker;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for IntegerSyntaxChecker.
@@ -31,23 +32,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class JavaIntegerSyntaxCheckerTest extends TestCase
+public class JavaIntegerSyntaxCheckerTest
 {
     JavaIntegerSyntaxChecker checker = new JavaIntegerSyntaxChecker();
 
 
+    @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 +59,7 @@
     }
 
 
+    @Test
     public void testWrongCase()
     {
         assertFalse( checker.isValidSyntax( "000" ) );
@@ -64,6 +69,7 @@
     }
 
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "1" ) );
@@ -75,6 +81,7 @@
     }
 
 
+    @Test
     public void testMinValueBoundry()
     {
         BigInteger min = new BigInteger( Integer.toString( Integer.MIN_VALUE ) );
@@ -86,6 +93,7 @@
     }
 
 
+    @Test
     public void testMaxValueBoundry()
     {
         BigInteger max = new BigInteger( Integer.toString( Integer.MAX_VALUE ) );

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaLongSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaLongSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaLongSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaLongSyntaxCheckerTest.java Sun Mar 15 00:17:36 2009
@@ -19,11 +19,12 @@
  */
 package org.apache.directory.shared.ldap.schema.syntax;
 
-import junit.framework.TestCase;
-
 import java.math.BigInteger;
 
 import org.apache.directory.shared.ldap.schema.syntaxes.JavaLongSyntaxChecker;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for JavaLongSyntaxChecker.
@@ -31,23 +32,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class JavaLongSyntaxCheckerTest extends TestCase
+public class JavaLongSyntaxCheckerTest
 {
     JavaLongSyntaxChecker checker = new JavaLongSyntaxChecker();
 
 
+    @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 +59,7 @@
     }
 
 
+    @Test
     public void testWrongCase()
     {
         assertFalse( checker.isValidSyntax( "000" ) );
@@ -64,6 +69,7 @@
     }
 
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "1" ) );
@@ -75,6 +81,7 @@
     }
 
 
+    @Test
     public void testMinValueBoundry()
     {
         BigInteger min = new BigInteger( Long.toString( Long.MIN_VALUE ) );
@@ -86,6 +93,7 @@
     }
 
 
+    @Test
     public void testMaxValueBoundry()
     {
         BigInteger max = new BigInteger( Long.toString( Long.MAX_VALUE ) );

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaShortSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaShortSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaShortSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JavaShortSyntaxCheckerTest.java Sun Mar 15 00:17:36 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.JavaShortSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for JavaShortSyntaxChecker.
@@ -29,23 +31,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class JavaShortSyntaxCheckerTest extends TestCase
+public class JavaShortSyntaxCheckerTest
 {
     JavaShortSyntaxChecker checker = new JavaShortSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
 
+    @Test
     public void testOneCharString()
     {
         assertFalse( checker.isValidSyntax( "f" ) );
@@ -53,6 +58,7 @@
     }
 
 
+    @Test
     public void testWrongCase()
     {
         assertFalse( checker.isValidSyntax( "000" ) );
@@ -62,6 +68,7 @@
     }
 
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "1" ) );
@@ -73,6 +80,7 @@
     }
 
 
+    @Test
     public void testMinValueBoundry()
     {
         int min = Short.MIN_VALUE;
@@ -84,6 +92,7 @@
     }
 
 
+    @Test
     public void testMaxValueBoundry()
     {
         int max = Short.MAX_VALUE;

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JpegSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JpegSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JpegSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/JpegSyntaxCheckerTest.java Sun Mar 15 00:17:36 2009
@@ -22,7 +22,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.JpegSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for JpegSyntaxChecker.
@@ -30,27 +32,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class JpegSyntaxCheckerTest extends TestCase
+public class JpegSyntaxCheckerTest
 {
     JpegSyntaxChecker checker = new JpegSyntaxChecker();
 
 
+    @Test
     public void testNullString()
     {
         assertFalse( checker.isValidSyntax( null ) );
     }
 
 
+    @Test
     public void testEmptyString()
     {
         assertFalse( checker.isValidSyntax( "" ) );
     }
 
+    @Test
     public void testWrongCase()
     {
         assertFalse( checker.isValidSyntax(  "this is not a jpeg file..." ) );
     }
 
+    @Test
     public void testCorrectCase()
     {
         byte[] array = new byte[256];

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/LdapSyntaxDescriptionSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/LdapSyntaxDescriptionSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/LdapSyntaxDescriptionSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/LdapSyntaxDescriptionSyntaxCheckerTest.java Sun Mar 15 00:17:36 2009
@@ -22,7 +22,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.LdapSyntaxDescriptionSyntaxChecker;
 
-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 LdapSyntaxDescriptionSyntaxCheckerTest extends TestCase
+public class LdapSyntaxDescriptionSyntaxCheckerTest
 {
     private LdapSyntaxDescriptionSyntaxChecker checker = new LdapSyntaxDescriptionSyntaxChecker();
 
 
+    @Test
     public void testValid()
     {
         assertTrue( checker.isValidSyntax( ( "( 1.3.6.1.4.1.1466.115.121.1.15 )" ) ) );
@@ -55,6 +58,7 @@
     }
 
 
+    @Test
     public void testInvalid()
     {
         // null 

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MHSORAddressSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MHSORAddressSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MHSORAddressSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MHSORAddressSyntaxCheckerTest.java Sun Mar 15 00:17:36 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.MHSORAddressSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 
 /**
  * Test cases for MHSORAddressSyntaxChecker.
@@ -29,27 +31,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class MHSORAddressSyntaxCheckerTest extends TestCase
+public class MHSORAddressSyntaxCheckerTest
 {
     MHSORAddressSyntaxChecker checker = new MHSORAddressSyntaxChecker();
 
 
+    @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.33", checker.getSyntaxOid() );
     }
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "FALSE" ) );

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MailPreferenceSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MailPreferenceSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MailPreferenceSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MailPreferenceSyntaxCheckerTest.java Sun Mar 15 00:17:36 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.MailPreferenceSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 /**
  * Test cases for MailPreferenceSyntaxChecker.
@@ -29,23 +31,26 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class MailPreferenceSyntaxCheckerTest extends TestCase
+public class MailPreferenceSyntaxCheckerTest
 {
     MailPreferenceSyntaxChecker checker = new MailPreferenceSyntaxChecker();
 
 
+    @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 testWrongCase()
     {
         assertFalse( checker.isValidSyntax( "any-list" ) );
@@ -64,6 +70,7 @@
     }
     
     
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "ANY-LIST" ) );

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MasterAndShadowAccessPointSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MasterAndShadowAccessPointSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MasterAndShadowAccessPointSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MasterAndShadowAccessPointSyntaxCheckerTest.java Sun Mar 15 00:17:36 2009
@@ -21,7 +21,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.MasterAndShadowAccessPointSyntaxChecker;
 
-import junit.framework.TestCase;
+import org.junit.Test;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 
 /**
  * Test cases for MasterAndShadowAccessPointSyntaxChecker.
@@ -29,27 +31,31 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class MasterAndShadowAccessPointSyntaxCheckerTest extends TestCase
+public class MasterAndShadowAccessPointSyntaxCheckerTest
 {
     MasterAndShadowAccessPointSyntaxChecker checker = new MasterAndShadowAccessPointSyntaxChecker();
 
 
+    @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.29", checker.getSyntaxOid() );
     }
 
+    @Test
     public void testCorrectCase()
     {
         assertTrue( checker.isValidSyntax( "FALSE" ) );

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MatchingRuleDescriptionSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MatchingRuleDescriptionSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MatchingRuleDescriptionSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MatchingRuleDescriptionSyntaxCheckerTest.java Sun Mar 15 00:17:36 2009
@@ -22,7 +22,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.MatchingRuleDescriptionSyntaxChecker;
 
-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 MatchingRuleDescriptionSyntaxCheckerTest extends TestCase
+public class MatchingRuleDescriptionSyntaxCheckerTest
 {
     private MatchingRuleDescriptionSyntaxChecker checker = new MatchingRuleDescriptionSyntaxChecker();
 
+    @Test
     public void testValid()
     {
         assertTrue( checker.isValidSyntax( ( "( 2.5.13.5 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )" ) ) );
@@ -50,6 +53,7 @@
     }
 
 
+    @Test
     public void testInvalid()
     {
         // null 

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MatchingRuleUseDescriptionSyntaxCheckerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MatchingRuleUseDescriptionSyntaxCheckerTest.java?rev=754565&r1=754564&r2=754565&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MatchingRuleUseDescriptionSyntaxCheckerTest.java (original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/MatchingRuleUseDescriptionSyntaxCheckerTest.java Sun Mar 15 00:17:36 2009
@@ -22,7 +22,9 @@
 
 import org.apache.directory.shared.ldap.schema.syntaxes.MatchingRuleUseDescriptionSyntaxChecker;
 
-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 MatchingRuleUseDescriptionSyntaxCheckerTest extends TestCase
+public class MatchingRuleUseDescriptionSyntaxCheckerTest
 {
     private MatchingRuleUseDescriptionSyntaxChecker checker = new MatchingRuleUseDescriptionSyntaxChecker();
 
 
+    @Test
     public void testValid()
     {
         assertTrue( checker.isValidSyntax( ( "( 2.5.13.17 APPLIES userPassword )" ) ) );
@@ -59,6 +62,7 @@
     }
 
 
+    @Test
     public void testInvalid()
     {
         // null 



Mime
View raw message