directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r915789 - /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/trigger/TriggerSpecificationParserTest.java
Date Wed, 24 Feb 2010 13:37:03 GMT
Author: elecharny
Date: Wed Feb 24 13:37:02 2010
New Revision: 915789

URL: http://svn.apache.org/viewvc?rev=915789&view=rev
Log:
o Removed the SearchScope class from trigger package
o Reflected the change on all the code
o Modified the SearchScope enum not to use any reference to jndi SearchControls

Modified:
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/trigger/TriggerSpecificationParserTest.java

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/trigger/TriggerSpecificationParserTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/trigger/TriggerSpecificationParserTest.java?rev=915789&r1=915788&r2=915789&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/trigger/TriggerSpecificationParserTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/trigger/TriggerSpecificationParserTest.java
Wed Feb 24 13:37:02 2010
@@ -21,14 +21,16 @@
 package org.apache.directory.shared.ldap.trigger;
 
 
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
 import java.util.List;
 
+import org.apache.directory.shared.ldap.filter.SearchScope;
 import org.apache.directory.shared.ldap.name.LdapDN;
 import org.apache.directory.shared.ldap.trigger.TriggerSpecification.SPSpec;
 import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
 
 
 
@@ -152,7 +154,7 @@
         assertEquals( theSpec.getOptions().size(), 1 );
         assertTrue( theSpec.getOptions().contains(
             new StoredProcedureSearchContextOption(
-                new LdapDN( "cn=Logger,ou=Stored Procedures,ou=system" ), SearchScope.ONE
) ) );
+                new LdapDN( "cn=Logger,ou=Stored Procedures,ou=system" ), SearchScope.ONELEVEL
) ) );
         assertEquals( theSpec.getParameters().size(), 2 );
         assertTrue( theSpec.getParameters().contains(
             StoredProcedureParameter.ModifyDN_ENTRY.instance() ) );



Mime
View raw message