directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r676250 - /directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java
Date Sat, 12 Jul 2008 23:49:15 GMT
Author: elecharny
Date: Sat Jul 12 16:49:15 2008
New Revision: 676250

URL: http://svn.apache.org/viewvc?rev=676250&view=rev
Log:
o Reformating some code for a better presentation.
o Removed a @Test for a method which was not a test

Modified:
    directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java

Modified: directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java?rev=676250&r1=676249&r2=676250&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java
(original)
+++ directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SearchITest.java
Sat Jul 12 16:49:15 2008
@@ -527,8 +527,7 @@
      * @param aciItem the prescriptive ACI attribute value
      * @throws NamingException if there is a problem creating the subentry
      */
-    @Test
-    public void createAccessControlSubentry( String cn, String subtree, String aciItem )
throws NamingException
+    private void createAccessControlSubentry( String cn, String subtree, String aciItem )
throws NamingException
     {
         DirContext adminCtx = ctx;
 
@@ -645,11 +644,34 @@
     public void testSubentryControl() throws Exception
     {
         // create a real access control subentry
-        createAccessControlSubentry( "anyBodyAdd", "{}", 
-            "{ " + "identificationTag \"addAci\", " + "precedence 14, "
-            + "authenticationLevel none, " + "itemOrUserFirst userFirst: { " + "userClasses
{ allUsers }, "
-            + "userPermissions { { " + "protectedItems {entry, allUserAttributeTypesAndValues},
"
-            + "grantsAndDenials { grantAdd, grantBrowse } } } } }"
+        createAccessControlSubentry( 
+            "anyBodyAdd", 
+            "{}", 
+            "{ " + 
+            "  identificationTag \"addAci\", " + 
+            "  precedence 14, " +
+            "  authenticationLevel none, " + 
+            "  itemOrUserFirst userFirst: " +
+            "  { " +
+            "    userClasses " + 
+            "    { " + 
+            "      allUsers " + 
+            "    }, " +
+            "    userPermissions " + 
+            "    { " + 
+            "      { " + 
+            "        protectedItems " + 
+            "        { " + 
+            "          entry, allUserAttributeTypesAndValues" + 
+            "        }, " +
+            "        grantsAndDenials " + 
+            "        { " + 
+            "          grantAdd, grantBrowse " +
+            "        } " +
+            "      } " +
+            "    } " + 
+            "  } " + 
+            "}"
         );
         
         // prepare the subentry control to make the subentry visible
@@ -662,6 +684,7 @@
         ctx.setRequestControls( reqControls );
         NamingEnumeration<SearchResult> enm = ctx.search( "", "(objectClass=*)", searchControls
);
         Set<String> results = new HashSet<String>();
+        
         while ( enm.hasMore() )
         {
             SearchResult result = enm.next();



Mime
View raw message