You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2010/06/18 13:52:03 UTC

svn commit: r955954 - /directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/schema/SubschemaSubentryIT.java

Author: elecharny
Date: Fri Jun 18 11:52:02 2010
New Revision: 955954

URL: http://svn.apache.org/viewvc?rev=955954&view=rev
Log:
Removed the @Ignore tag, partially commented a test

Modified:
    directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/schema/SubschemaSubentryIT.java

Modified: directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/schema/SubschemaSubentryIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/schema/SubschemaSubentryIT.java?rev=955954&r1=955953&r2=955954&view=diff
==============================================================================
--- directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/schema/SubschemaSubentryIT.java (original)
+++ directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/schema/SubschemaSubentryIT.java Fri Jun 18 11:52:02 2010
@@ -90,7 +90,6 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.schema.syntaxCheckers.OctetStringSyntaxChecker;
 import org.apache.directory.shared.ldap.util.Base64;
 import org.apache.directory.shared.ldap.util.DateUtils;
-import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
@@ -1860,7 +1859,7 @@ public class SubschemaSubentryIT extends
      * @throws NamingException on error
      */
     @Test
-    @Ignore ( "Don't know why but this is causing intermittant failures in assertions" )
+    // @TODO as we can't modify a schema element, the end of this test has been commented
     public void testTimestampAndModifierUpdates() throws Exception, InterruptedException
     {
         TimeZone tz = TimeZone.getTimeZone( "GMT" );
@@ -1879,7 +1878,7 @@ public class SubschemaSubentryIT extends
         assertNotNull( modifiersNameAttr );
         DN expectedDN = new DN( "uid=admin,ou=system" );
         expectedDN.normalize( service.getSchemaManager().getNormalizerMapping() );
-        assertEquals( expectedDN.getNormName(), modifiersNameAttr.get() );
+        assertEquals( expectedDN.getName(), modifiersNameAttr.get() );
         assertNotNull( modifyTimestampAttr );
 
         Calendar cal = Calendar.getInstance( tz );
@@ -1917,7 +1916,7 @@ public class SubschemaSubentryIT extends
         assertNotNull( modifiersNameAttrAfter );
         expectedDN = new DN( "uid=admin,ou=system" );
         expectedDN.normalize( service.getSchemaManager().getNormalizerMapping() );
-        assertEquals( expectedDN.getNormName(), modifiersNameAttrAfter.get() );
+        assertEquals( expectedDN.getName(), modifiersNameAttrAfter.get() );
         assertNotNull( modifiersTimestampAttrAfter );
         
         cal = Calendar.getInstance( tz );
@@ -1949,7 +1948,7 @@ public class SubschemaSubentryIT extends
         
         // now let's add another attribute type definition to the schema but 
         // with this newly created user and check that the modifiers name is his
-
+        /*
         substrate = "( 1.3.6.1.4.1.18060.0.4.0.2.10001 NAME ( 'bogus2' 'bogusName2' ) " +
             "DESC 'bogus description' SUP name SINGLE-VALUE X-SCHEMA 'nis' )";
         mods[0] = new ModificationItem( DirContext.ADD_ATTRIBUTE, 
@@ -1978,6 +1977,7 @@ public class SubschemaSubentryIT extends
         modifyTimestampAfter = DateUtils.getDate( ( String ) modifiersTimestampAttrAfter.get() );
         assertTrue( modifyTimestampAfter.getTime() <= cal.getTime().getTime() );
         assertTrue( modifyTimestampAfter.getTime() >= modifyTimestamp.getTime() );
+        */
     }