mirror of
https://github.com/apache/activemq.git
synced 2025-02-22 09:55:47 +00:00
moved the SSL tests into the activemq-core
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@389537 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
24404740a1
commit
89106062da
@ -196,7 +196,6 @@
|
||||
<exclude>**/HttpTransportBrokerTest.*</exclude>
|
||||
|
||||
<exclude>**/Http*Test.*</exclude>
|
||||
<exclude>**/Ssl*Test.*</exclude>
|
||||
|
||||
</excludes>
|
||||
</unitTest>
|
||||
|
@ -1,40 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* Copyright 2005-2006 The Apache Software Foundation
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.transport.ssl;
|
||||
|
||||
import org.apache.activemq.transport.tcp.TcpTransportFactory;
|
||||
|
||||
import javax.net.ServerSocketFactory;
|
||||
import javax.net.SocketFactory;
|
||||
import javax.net.ssl.SSLServerSocketFactory;
|
||||
import javax.net.ssl.SSLSocketFactory;
|
||||
|
||||
/**
|
||||
* An SSL version of the TCP transport
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class SslTransportFactory extends TcpTransportFactory {
|
||||
|
||||
protected SocketFactory createSocketFactory() {
|
||||
return SSLSocketFactory.getDefault();
|
||||
}
|
||||
|
||||
protected ServerSocketFactory createServerSocketFactory() {
|
||||
return SSLServerSocketFactory.getDefault();
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>
|
||||
An implementation of the transport layer using SSL over TCP/IP sockets
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,51 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* Copyright 2005-2006 The Apache Software Foundation
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.activemq.transport.ssl;
|
||||
|
||||
import org.apache.activemq.transport.TransportBrokerTestSupport;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.textui.TestRunner;
|
||||
|
||||
public class SslTransportBrokerTest extends TransportBrokerTestSupport {
|
||||
|
||||
protected String getBindLocation() {
|
||||
return "ssl://localhost:0";
|
||||
}
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
System.setProperty("javax.net.ssl.trustStore", "src/test/resources/client.keystore");
|
||||
System.setProperty("javax.net.ssl.trustStorePassword", "password");
|
||||
System.setProperty("javax.net.ssl.trustStoreType", "jks");
|
||||
System.setProperty("javax.net.ssl.keyStore", "src/test/resources/server.keystore");
|
||||
System.setProperty("javax.net.ssl.keyStorePassword", "password");
|
||||
System.setProperty("javax.net.ssl.keyStoreType", "jks");
|
||||
//System.setProperty("javax.net.debug", "ssl,handshake,data,trustmanager");
|
||||
|
||||
MAX_WAIT = 2000;
|
||||
super.setUp();
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
return suite(SslTransportBrokerTest.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
TestRunner.run(suite());
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user