directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r584314 - /directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
Date Fri, 12 Oct 2007 23:09:22 GMT
Author: djencks
Date: Fri Oct 12 16:08:34 2007
New Revision: 584314

URL: http://svn.apache.org/viewvc?rev=584314&view=rev
Log:
fix MiscTest

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

Modified: directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java?rev=584314&r1=584313&r2=584314&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
(original)
+++ directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
Fri Oct 12 16:08:34 2007
@@ -75,15 +75,16 @@
      */
     public void setUp() throws Exception
     {
+        super.setUp();
         if ( this.getName().equals( "testDisableAnonymousBinds" ) ||
-                this.getName().equals( "testCompareWithoutAuthentication" ) )
+                this.getName().equals( "testCompareWithoutAuthentication" ) ||
+                this.getName().equals( "testEnableAnonymousBindsOnRootDSE" ) )
         {
             setAllowAnonymousAccess( false );
-        } else if ( this.getName().equals( "testEnableAnonymousBindsOnRootDSE" ) )
+        } else if ( this.getName().equals( "testAnonymousBindsEnabledBaseSearch" ) )
         {
-            setAllowAnonymousAccess( false );
+            setAllowAnonymousAccess( true );
         }
-        super.setUp();
     }
 
 
@@ -110,9 +111,6 @@
             directoryService.setPartitions( partitions );
         } else if ( this.getName().equals( "testAnonymousBindsEnabledBaseSearch" ) )
         {
-            // allow anonymous access
-            setAllowAnonymousAccess( true );
-
             // create a partition to search
             Set partitions = new HashSet();
             partitions.addAll( directoryService.getPartitions() );



Mime
View raw message