You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2006/07/12 08:00:44 UTC

svn commit: r421148 - /directory/branches/apacheds/optimization/protocol-ldap/src/test/java/org/apache/directory/server/ldap/LdapProtocolProviderTest.java

Author: akarasulu
Date: Tue Jul 11 23:00:43 2006
New Revision: 421148

URL: http://svn.apache.org/viewvc?rev=421148&view=rev
Log:
fixing broken test case

Modified:
    directory/branches/apacheds/optimization/protocol-ldap/src/test/java/org/apache/directory/server/ldap/LdapProtocolProviderTest.java

Modified: directory/branches/apacheds/optimization/protocol-ldap/src/test/java/org/apache/directory/server/ldap/LdapProtocolProviderTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/optimization/protocol-ldap/src/test/java/org/apache/directory/server/ldap/LdapProtocolProviderTest.java?rev=421148&r1=421147&r2=421148&view=diff
==============================================================================
--- directory/branches/apacheds/optimization/protocol-ldap/src/test/java/org/apache/directory/server/ldap/LdapProtocolProviderTest.java (original)
+++ directory/branches/apacheds/optimization/protocol-ldap/src/test/java/org/apache/directory/server/ldap/LdapProtocolProviderTest.java Tue Jul 11 23:00:43 2006
@@ -24,6 +24,7 @@
 import org.apache.directory.server.core.configuration.StartupConfiguration;
 import org.apache.directory.server.ldap.LdapProtocolProvider;
 import org.apache.directory.server.ldap.support.ExtendedHandler;
+import org.apache.directory.server.ldap.support.LdapMessageHandler;
 import org.apache.directory.shared.ldap.NotImplementedException;
 import org.apache.directory.shared.ldap.exception.LdapNamingException;
 import org.apache.directory.shared.ldap.message.AbandonRequest;
@@ -48,7 +49,6 @@
 import org.apache.directory.shared.ldap.message.UnbindRequestImpl;
 
 import org.apache.mina.common.IoSession;
-import org.apache.mina.handler.demux.MessageHandler;
 
 
 /**
@@ -121,75 +121,111 @@
         assertTrue( provider.getName() == LdapProtocolProvider.SERVICE_NAME );
     }
 
-    public static class BogusAbandonHandler implements MessageHandler
+    public static class BogusAbandonHandler implements LdapMessageHandler
     {
         public void messageReceived( IoSession session, Object request )
         {
             throw new NotImplementedException( "handler not implemented!" );
         }
+
+        public void init( StartupConfiguration cfg )
+        {
+        }
     }
 
-    public static class BogusUnbindHandler implements MessageHandler
+    public static class BogusUnbindHandler implements LdapMessageHandler
     {
         public void messageReceived( IoSession session, Object request )
         {
             throw new NotImplementedException( "handler not implemented!" );
         }
+
+        public void init( StartupConfiguration cfg )
+        {
+        }
     }
 
-    public static class BogusAddHandler implements MessageHandler
+    public static class BogusAddHandler implements LdapMessageHandler
     {
         public void messageReceived( IoSession session, Object request )
         {
             throw new NotImplementedException( "handler not implemented!" );
         }
+
+        public void init( StartupConfiguration cfg )
+        {
+        }
     }
 
-    public static class BogusBindHandler implements MessageHandler
+    public static class BogusBindHandler implements LdapMessageHandler
     {
         public void messageReceived( IoSession session, Object request )
         {
             throw new NotImplementedException( "handler not implemented!" );
         }
+
+        public void init( StartupConfiguration cfg )
+        {
+        }
     }
 
-    public static class BogusCompareHandler implements MessageHandler
+    public static class BogusCompareHandler implements LdapMessageHandler
     {
         public void messageReceived( IoSession session, Object request )
         {
             throw new NotImplementedException( "handler not implemented!" );
         }
+
+        public void init( StartupConfiguration cfg )
+        {
+        }
     }
 
-    public static class BogusDeleteHandler implements MessageHandler
+    public static class BogusDeleteHandler implements LdapMessageHandler
     {
         public void messageReceived( IoSession session, Object request )
         {
             throw new NotImplementedException( "handler not implemented!" );
         }
+
+        public void init( StartupConfiguration cfg )
+        {
+        }
     }
 
-    public static class BogusModifyDnHandler implements MessageHandler
+    public static class BogusModifyDnHandler implements LdapMessageHandler
     {
         public void messageReceived( IoSession session, Object request )
         {
             throw new NotImplementedException( "handler not implemented!" );
         }
+
+        public void init( StartupConfiguration cfg )
+        {
+        }
     }
 
-    public static class BogusModifyHandler implements MessageHandler
+    public static class BogusModifyHandler implements LdapMessageHandler
     {
         public void messageReceived( IoSession session, Object request )
         {
             throw new NotImplementedException( "handler not implemented!" );
         }
+
+        public void init( StartupConfiguration cfg )
+        {
+        }
     }
 
-    public static class BogusSearchHandler implements MessageHandler
+    public static class BogusSearchHandler implements LdapMessageHandler
     {
         public void messageReceived( IoSession session, Object request )
         {
             throw new NotImplementedException( "handler not implemented!" );
+        }
+
+        public void init( StartupConfiguration cfg )
+        {
         }
     }
 }