1 45 package org.exolab.jms.net.tcp.connector; 46 47 import junit.framework.Test; 48 import junit.framework.TestSuite; 49 50 import org.exolab.jms.net.connector.ManagedConnectionFactory; 51 import org.exolab.jms.net.socket.SocketRequestInfo; 52 import org.exolab.jms.net.socket.SocketManagedConnectionFactoryTestCase; 53 import org.exolab.jms.net.tcp.TCPSManagedConnectionFactory; 54 import org.exolab.jms.net.tcp.TCPSRequestInfo; 55 import org.exolab.jms.net.uri.URI; 56 import org.exolab.jms.net.util.SSLUtil; 57 58 59 65 public class TCPSManagedConnectionFactoryTest 66 extends SocketManagedConnectionFactoryTestCase { 67 68 74 public TCPSManagedConnectionFactoryTest(String name) throws Exception { 75 super(name, "tcps://localhost:5099"); 76 } 77 78 83 public static Test suite() { 84 return new TestSuite(TCPSManagedConnectionFactoryTest.class); 85 } 86 87 92 public static void main(String [] args) { 93 junit.textui.TestRunner.run(suite()); 94 } 95 96 102 protected ManagedConnectionFactory createManagedConnectionFactory() 103 throws Exception { 104 return new TCPSManagedConnectionFactory(); 105 } 106 107 114 protected SocketRequestInfo getSocketRequestInfo(URI uri) 115 throws Exception { 116 TCPSRequestInfo info = new TCPSRequestInfo(uri); 117 info.setSSLProperties( 118 SSLUtil.getSSLProperties("test.keystore", "secret")); 119 return info; 120 } 121 122 } 123 | Popular Tags |