directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r659744 - /directory/apacheds/branches/bigbang/core-integ/src/test/java/org/apache/directory/server/core/authz/AuthorizationServiceAsAdminIT.java
Date Sat, 24 May 2008 02:05:30 GMT
Author: elecharny
Date: Fri May 23 19:05:29 2008
New Revision: 659744

URL: http://svn.apache.org/viewvc?rev=659744&view=rev
Log:
Added some missing asserts

Modified:
    directory/apacheds/branches/bigbang/core-integ/src/test/java/org/apache/directory/server/core/authz/AuthorizationServiceAsAdminIT.java

Modified: directory/apacheds/branches/bigbang/core-integ/src/test/java/org/apache/directory/server/core/authz/AuthorizationServiceAsAdminIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core-integ/src/test/java/org/apache/directory/server/core/authz/AuthorizationServiceAsAdminIT.java?rev=659744&r1=659743&r2=659744&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core-integ/src/test/java/org/apache/directory/server/core/authz/AuthorizationServiceAsAdminIT.java
(original)
+++ directory/apacheds/branches/bigbang/core-integ/src/test/java/org/apache/directory/server/core/authz/AuthorizationServiceAsAdminIT.java
Fri May 23 19:05:29 2008
@@ -29,6 +29,7 @@
 import org.apache.directory.shared.ldap.util.ArrayUtils;
 import org.apache.directory.shared.ldap.util.StringTools;
 
+import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.fail;
@@ -136,9 +137,16 @@
             set.add( result.getName() );
         }
 
+        assertEquals( 10, set.size() );
         assertTrue( set.contains( "ou=system" ) );
-        assertTrue( set.contains( "ou=groups,ou=system" ) );
-        assertTrue( set.contains( "ou=users,ou=system" ) );
-        assertTrue( set.contains( "uid=admin,ou=system" ) );
+          assertTrue( set.contains( "ou=configuration,ou=system" ) );
+            assertTrue( set.contains( "ou=interceptors,ou=configuration,ou=system" ) );
+            assertTrue( set.contains( "ou=partitions,ou=configuration,ou=system" ) );
+            assertTrue( set.contains( "ou=services,ou=configuration,ou=system" ) );
+          assertTrue( set.contains( "ou=groups,ou=system" ) );
+            assertTrue( set.contains( "cn=Administrators,ou=groups,ou=system" ) );
+          assertTrue( set.contains( "ou=users,ou=system" ) );
+          assertTrue( set.contains( "prefNodeName=sysPrefRoot,ou=system" ) );
+          assertTrue( set.contains( "uid=admin,ou=system" ) );
     }
 }



Mime
View raw message