directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r539765 - in /directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server: DefaultServerTriggerServiceTest.java ListUtilsSP.java
Date Sat, 19 May 2007 14:53:45 GMT
Author: ersiner
Date: Sat May 19 07:53:44 2007
New Revision: 539765

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

Modified:
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DefaultServerTriggerServiceTest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ListUtilsSP.java

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DefaultServerTriggerServiceTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DefaultServerTriggerServiceTest.java?view=diff&rev=539765&r1=539764&r2=539765
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DefaultServerTriggerServiceTest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DefaultServerTriggerServiceTest.java
Sat May 19 07:53:44 2007
@@ -107,8 +107,8 @@
         
         createTriggerSubentry( ctx, "triggerSubentry1",
             "AFTER Add " +
-            "CALL \"" + ListUtilsSP.class.getName() + ".subcribeToGroup\" ( $entry , $ldapContext
\"" + staffDN + "\" ); " +
-            "CALL \"" + ListUtilsSP.class.getName() + ".subcribeToGroup\" ( $entry , $ldapContext
\"" + teachersDN + "\" );" );
+            "CALL \"" + ListUtilsSP.class.getName() + ".subscribeToGroup\" ( $entry , $ldapContext
\"" + staffDN + "\" ); " +
+            "CALL \"" + ListUtilsSP.class.getName() + ".subscribeToGroup\" ( $entry , $ldapContext
\"" + teachersDN + "\" );" );
         
         // Create a test entry which is selected by the Trigger Subentry.
         Attributes testEntry = new AttributesImpl( SchemaConstants.CN_AT, "The Teacher of
All Times", true );
@@ -127,7 +127,6 @@
         // Check if the Trigger really worked (backed up the deleted entry).
         Attributes staff = sysRoot.getAttributes( "cn=staff" );
         Attributes teachers = sysRoot.getAttributes( "cn=teachers" );
-        System.out.println( staff );
         String testEntryName = ( ( LdapContext )sysRoot.lookup( testEntryRdn.getUpName()
) ).getNameInNamespace();
         assertTrue( AttributeUtils.containsValueCaseIgnore( staff.get(SchemaConstants.UNIQUE_MEMBER_AT),
testEntryName ) );
         assertTrue( AttributeUtils.containsValueCaseIgnore( teachers.get(SchemaConstants.UNIQUE_MEMBER_AT),
testEntryName ) );

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ListUtilsSP.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ListUtilsSP.java?view=diff&rev=539765&r1=539764&r2=539765
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ListUtilsSP.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ListUtilsSP.java
Sat May 19 07:53:44 2007
@@ -35,7 +35,7 @@
     private static final Logger log = LoggerFactory.getLogger( ListUtilsSP.class );
 
 
-    public static void subcribeToGroup( Name addedEntryName, LdapContext groupCtx ) throws
NamingException
+    public static void subscribeToGroup( Name addedEntryName, LdapContext groupCtx ) throws
NamingException
     {
         log.info( "User \"" + addedEntryName + "\" will be subscribed to \"" + groupCtx +
"\"" );
         groupCtx.modifyAttributes("", DirContext.ADD_ATTRIBUTE, new BasicAttributes( SchemaConstants.UNIQUE_MEMBER_AT,
addedEntryName.toString(), true ) );



Mime
View raw message