You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2007/04/05 19:03:51 UTC
svn commit: r525887 -
/directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/InterceptorChainTest.java
Author: elecharny
Date: Thu Apr 5 10:03:49 2007
New Revision: 525887
URL: http://svn.apache.org/viewvc?view=rev&rev=525887
Log:
Now use the new lookup( ServiceContext ) method
Modified:
directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/InterceptorChainTest.java
Modified: directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/InterceptorChainTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/InterceptorChainTest.java?view=diff&rev=525887&r1=525886&r2=525887
==============================================================================
--- directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/InterceptorChainTest.java (original)
+++ directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/InterceptorChainTest.java Thu Apr 5 10:03:49 2007
@@ -37,6 +37,7 @@
import org.apache.directory.server.core.configuration.PartitionConfiguration;
import org.apache.directory.server.core.configuration.InterceptorConfiguration;
import org.apache.directory.server.core.configuration.MutableInterceptorConfiguration;
+import org.apache.directory.server.core.interceptor.context.LookupServiceContext;
import org.apache.directory.server.core.interceptor.context.ServiceContext;
import org.apache.directory.server.core.invocation.Invocation;
import org.apache.directory.server.core.invocation.InvocationStack;
@@ -101,7 +102,7 @@
try
{
- chain.lookup( dn );
+ chain.lookup( new LookupServiceContext( dn ) );
}
catch ( Exception e )
{
@@ -127,7 +128,7 @@
try
{
- chain.lookup( dn );
+ chain.lookup( new LookupServiceContext( dn ) );
}
catch ( Exception e )
{
@@ -160,7 +161,7 @@
try
{
- chain.lookup( dn );
+ chain.lookup( new LookupServiceContext( dn ) );
}
catch ( Exception e )
{
@@ -194,7 +195,7 @@
try
{
- chain.lookup( dn );
+ chain.lookup( new LookupServiceContext( dn ) );
}
catch ( Exception e )
{
@@ -224,7 +225,7 @@
try
{
- chain.lookup( dn );
+ chain.lookup( new LookupServiceContext( dn ) );
}
catch ( Exception e )
{
@@ -251,7 +252,7 @@
try
{
- chain.lookup( dn );
+ chain.lookup( new LookupServiceContext( dn ) );
}
catch ( Exception e )
{
@@ -382,17 +383,10 @@
}
- public Attributes lookup( NextInterceptor next, LdapDN name ) throws NamingException
+ public Attributes lookup( NextInterceptor next, ServiceContext lookupContext ) throws NamingException
{
interceptors.add( this );
- return next.lookup( name );
- }
-
-
- public Attributes lookup( NextInterceptor next, LdapDN dn, String[] attrIds ) throws NamingException
- {
- interceptors.add( this );
- return next.lookup( dn, attrIds );
+ return next.lookup( lookupContext );
}