directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r398901 - /directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/SubentryServiceForTriggersTest.java
Date Tue, 02 May 2006 10:58:59 GMT
Author: ersiner
Date: Tue May  2 03:58:55 2006
New Revision: 398901

URL: http://svn.apache.org/viewcvs?rev=398901&view=rev
Log:
Removed unnecassary autonomousArea related assertions. (They're already tested in SubentryServiceTest.)

Modified:
    directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/SubentryServiceForTriggersTest.java

Modified: directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/SubentryServiceForTriggersTest.java
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/SubentryServiceForTriggersTest.java?rev=398901&r1=398900&r2=398901&view=diff
==============================================================================
--- directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/SubentryServiceForTriggersTest.java
(original)
+++ directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/SubentryServiceForTriggersTest.java
Tue May  2 03:58:55 2006
@@ -127,13 +127,9 @@
         // --------------------------------------------------------------------
 
         Attributes marked = ( Attributes ) results.get( "cn=marked,ou=configuration,ou=system"
);
-        Attribute autonomousSubentry = marked.get( SubentryService.AUTONOUMOUS_AREA_SUBENTRY
);
         Attribute triggerSubentries = marked.get( SubentryService.TRIGGER_SUBENTRIES );
-        assertNotNull( "cn=marked,ou=configuration,ou=system should be marked", autonomousSubentry
);
         assertNotNull( "cn=marked,ou=configuration,ou=system should be marked", triggerSubentries
);
-        assertEquals( "cn=testsubentry,ou=system", autonomousSubentry.get() );
         assertEquals( "cn=testsubentry,ou=system", triggerSubentries.get() );
-        assertEquals( 1, autonomousSubentry.size() );
         assertEquals( 1, triggerSubentries.size() );
 
         // --------------------------------------------------------------------
@@ -142,8 +138,6 @@
 
         Attributes unmarked = ( Attributes ) results.get( "cn=unmarked,ou=system" );
         assertNull( "cn=unmarked,ou=system should not be marked", unmarked
-            .get( SubentryService.AUTONOUMOUS_AREA_SUBENTRY ) );
-        assertNull( "cn=unmarked,ou=system should not be marked", unmarked
             .get( SubentryService.TRIGGER_SUBENTRIES ) );
     }
 
@@ -168,23 +162,15 @@
         // --------------------------------------------------------------------
 
         Attributes configuration = ( Attributes ) results.get( "ou=configuration,ou=system"
);
-        Attribute autonomousSubentry = configuration.get( SubentryService.AUTONOUMOUS_AREA_SUBENTRY
);
         Attribute triggerSubentries = configuration.get( SubentryService.TRIGGER_SUBENTRIES
);
-        assertNotNull( "ou=configuration,ou=system should be marked", autonomousSubentry
);
         assertNotNull( "ou=configuration,ou=system should be marked", triggerSubentries );
-        assertEquals( "cn=testsubentry,ou=system", autonomousSubentry.get() );
         assertEquals( "cn=testsubentry,ou=system", triggerSubentries.get() );
-        assertEquals( 1, autonomousSubentry.size() );
         assertEquals( 1, triggerSubentries.size() );
 
         Attributes interceptors = ( Attributes ) results.get( "ou=interceptors,ou=configuration,ou=system"
);
-        autonomousSubentry = interceptors.get( SubentryService.AUTONOUMOUS_AREA_SUBENTRY
);
         triggerSubentries = interceptors.get( SubentryService.TRIGGER_SUBENTRIES );
-        assertNotNull( "ou=interceptors,ou=configuration,ou=system should be marked", autonomousSubentry
);
         assertNotNull( "ou=interceptors,ou=configuration,ou=system should be marked", triggerSubentries
);
-        assertEquals( "cn=testsubentry,ou=system", autonomousSubentry.get() );
         assertEquals( "cn=testsubentry,ou=system", triggerSubentries.get() );
-        assertEquals( 1, autonomousSubentry.size() );
         assertEquals( 1, triggerSubentries.size() );
 
         // --------------------------------------------------------------------



Mime
View raw message