[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/multiplex/ssl/socketfactory ...
Ron Sigal
ron_sigal at yahoo.com
Tue Jan 16 22:10:41 EST 2007
User: rsigal
Date: 07/01/16 22:10:41
Added: src/tests/org/jboss/test/remoting/transport/multiplex/ssl/socketfactory
SSLMultiplexCreationListenerTestCase.java
Log:
JBREM-298: Added unit tests for socket creation listeners.
Revision Changes Path
1.2 +52 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/multiplex/ssl/socketfactory/SSLMultiplexCreationListenerTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SSLMultiplexCreationListenerTestCase.java
===================================================================
RCS file: SSLMultiplexCreationListenerTestCase.java
diff -N SSLMultiplexCreationListenerTestCase.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ SSLMultiplexCreationListenerTestCase.java 17 Jan 2007 03:10:41 -0000 1.2
@@ -0,0 +1,52 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.remoting.transport.multiplex.ssl.socketfactory;
+
+import org.jboss.test.remoting.socketfactory.SSLCreationListenerTestRoot;
+import org.jboss.test.remoting.socketfactory.CreationListenerTestRoot.TestListener;
+
+/**
+ * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
+ * @version $Revision: 1.2 $
+ * <p>
+ * Copyright Jan 11, 2007
+ * </p>
+ */
+public class SSLMultiplexCreationListenerTestCase extends SSLCreationListenerTestRoot
+{
+ protected String getTransport()
+ {
+ return "sslmultiplex";
+ }
+ protected boolean checkListenersVisited(TestListener listener1, TestListener listener2,
+ TestListener listener3, TestListener listener4)
+ {
+ // Need to treat sslmultiplex transport as a special case because sockets are
+ // created in a special way.
+ return listener1.visited() &&
+ !listener2.visited() &&
+ listener3.visited() &&
+ !listener4.visited() &&
+ !listener1.isClient() &&
+ listener3.isClient();
+ }
+}
More information about the jboss-cvs-commits
mailing list