2
* JBoss, Home of Professional Open Source.
3
* Copyright 2010, Red Hat Middleware LLC, and individual contributors
4
* as indicated by the @author tags. See the copyright.txt file in the
5
* distribution for a full listing of individual contributors.
7
* This is free software; you can redistribute it and/or modify it
8
* under the terms of the GNU Lesser General Public License as
9
* published by the Free Software Foundation; either version 2.1 of
10
* the License, or (at your option) any later version.
12
* This software is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this software; if not, write to the Free
19
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
23
package org.jboss.test.remoting.transport.bisocket.timeout;
25
import java.io.IOException;
28
import org.apache.log4j.Logger;
29
import org.jboss.remoting.InvokerLocator;
30
import org.jboss.remoting.transport.ClientFactory;
31
import org.jboss.remoting.transport.ClientInvoker;
32
import org.jboss.remoting.transport.bisocket.BisocketClientInvoker;
33
import org.jboss.remoting.transport.socket.ServerAddress;
34
import org.jboss.test.remoting.transport.socket.timeout.SocketDefaultTimeoutTestCase;
38
* Unit tests for JBREM-1188.
40
* @author <a href="ron.sigal@jboss.com">Ron Sigal</a>
41
* @version $Revision: 1.1 $
43
* Copyright Feb 16, 2010
45
public class BisocketDefaultTimeoutTestCase extends SocketDefaultTimeoutTestCase
47
private static Logger log = Logger.getLogger(BisocketDefaultTimeoutTestCase.class);
50
protected Class getClientFactoryClass()
52
return TestBisocketClientFactory.class;
56
protected Class getClientInvokerClass()
58
return TestBisocketClientInvoker.class;
62
public static class TestBisocketClientFactory implements ClientFactory
64
public ClientInvoker createClientInvoker(InvokerLocator locator, Map config) throws IOException
66
ClientInvoker clientInvoker = new TestBisocketClientInvoker(locator, config);
67
log.info("TestClientFaotory.createClientInvoker() returning " + clientInvoker);
70
public boolean supportsSSL()
77
public static class TestBisocketClientInvoker extends BisocketClientInvoker
79
public TestBisocketClientInvoker(InvokerLocator locator, Map configuration) throws IOException
81
super(locator, configuration);
83
public TestBisocketClientInvoker(InvokerLocator locator) throws IOException
87
public ServerAddress getServerAddress()
91
public String toString()
93
return "TestBisocketClientInvoker";
b'\\ No newline at end of file'