directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1222362 - in /directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz: AddAuthorizationIT.java AutzIntegUtils.java DeleteAuthorizationIT.java
Date Thu, 22 Dec 2011 17:26:50 GMT
Author: elecharny
Date: Thu Dec 22 17:26:50 2011
New Revision: 1222362

URL: http://svn.apache.org/viewvc?rev=1222362&view=rev
Log:
Minor refactorings

Modified:
    directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/AddAuthorizationIT.java
    directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/AutzIntegUtils.java
    directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/DeleteAuthorizationIT.java

Modified: directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/AddAuthorizationIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/AddAuthorizationIT.java?rev=1222362&r1=1222361&r2=1222362&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/AddAuthorizationIT.java
(original)
+++ directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/AddAuthorizationIT.java
Thu Dec 22 17:26:50 2011
@@ -88,13 +88,15 @@ public class AddAuthorizationIT extends 
         connection = getConnectionAs( userName, password );
 
         String entryDn = entryRdn + ",ou=system";
-        Entry entry = new DefaultEntry( entryDn );
-        entry.add( "ou", "testou" );
-        entry.add( "ObjectClass", "top", "organizationalUnit" );
+        Entry entry = new DefaultEntry( entryDn,
+        		"ou: testou",
+        		"ObjectClass: top", 
+        		"ObjectClass: organizationalUnit" );
 
         try
         {
             connection.add( entry );
+            
             return true;
         }
         catch ( LdapException le )

Modified: directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/AutzIntegUtils.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/AutzIntegUtils.java?rev=1222362&r1=1222361&r2=1222362&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/AutzIntegUtils.java
(original)
+++ directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/AutzIntegUtils.java
Thu Dec 22 17:26:50 2011
@@ -140,7 +140,7 @@ public class AutzIntegUtils
             "userPassword", password );
 
         connection.add( entry );
-        assertTrue( connection.exists(  entry.getDn() ) );
+        assertTrue( connection.exists( entry.getDn() ) );
 
         return entry.getDn();
     }

Modified: directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/DeleteAuthorizationIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/DeleteAuthorizationIT.java?rev=1222362&r1=1222361&r2=1222362&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/DeleteAuthorizationIT.java
(original)
+++ directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/authz/DeleteAuthorizationIT.java
Thu Dec 22 17:26:50 2011
@@ -113,7 +113,7 @@ public class DeleteAuthorizationIT exten
         }
         catch ( LdapNoPermissionException lnpe )
         {
-            adminConnection.delete(entryDn);
+            adminConnection.delete( entryDn );
             return false;
         }
 



Mime
View raw message