mirror of https://github.com/apache/activemq.git
NO-JIRA - Fix some warnings from unused imports and use of deprecated
methods.
This commit is contained in:
parent
80b526be7d
commit
e8a0d042d8
|
@ -16,7 +16,6 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq.transport.amqp;
|
package org.apache.activemq.transport.amqp;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
|
||||||
import java.io.DataOutputStream;
|
import java.io.DataOutputStream;
|
||||||
import java.io.EOFException;
|
import java.io.EOFException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
|
@ -18,7 +18,6 @@ package org.apache.activemq.transport.amqp.auto;
|
||||||
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
|
|
||||||
import org.apache.activemq.transport.amqp.JMSClientNioTest;
|
|
||||||
import org.apache.activemq.transport.amqp.JMSClientTest;
|
import org.apache.activemq.transport.amqp.JMSClientTest;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
|
@ -18,7 +18,6 @@ package org.apache.activemq.transport.amqp.auto;
|
||||||
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
|
|
||||||
import org.apache.activemq.transport.amqp.JMSClientNioPlusSslTest;
|
|
||||||
import org.apache.activemq.transport.amqp.JMSClientSslTest;
|
import org.apache.activemq.transport.amqp.JMSClientSslTest;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq.transport.amqp.joram;
|
package org.apache.activemq.transport.amqp.joram;
|
||||||
|
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.net.ssl.KeyManager;
|
import javax.net.ssl.KeyManager;
|
||||||
import javax.net.ssl.SSLContext;
|
import javax.net.ssl.SSLContext;
|
||||||
import javax.net.ssl.TrustManager;
|
import javax.net.ssl.TrustManager;
|
||||||
|
@ -73,7 +75,7 @@ public class JoramJmsNioPlusSslTest {
|
||||||
protected static final Logger LOG = LoggerFactory.getLogger(JoramJmsNioPlusSslTest.class);
|
protected static final Logger LOG = LoggerFactory.getLogger(JoramJmsNioPlusSslTest.class);
|
||||||
|
|
||||||
@Rule
|
@Rule
|
||||||
public Timeout to = new Timeout(10 * 1000);
|
public Timeout to = new Timeout(10, TimeUnit.SECONDS);
|
||||||
|
|
||||||
private static SSLContext def;
|
private static SSLContext def;
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq.transport.amqp.joram;
|
package org.apache.activemq.transport.amqp.joram;
|
||||||
|
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
import org.junit.rules.Timeout;
|
import org.junit.rules.Timeout;
|
||||||
|
@ -66,7 +68,7 @@ import org.objectweb.jtests.jms.conform.topic.TemporaryTopicTest;
|
||||||
public class JoramJmsNioTest {
|
public class JoramJmsNioTest {
|
||||||
|
|
||||||
@Rule
|
@Rule
|
||||||
public Timeout timeout = new Timeout(10 * 1000);
|
public Timeout timeout = new Timeout(10, TimeUnit.SECONDS);
|
||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void beforeClass() throws Exception {
|
public static void beforeClass() throws Exception {
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq.transport.amqp.joram;
|
package org.apache.activemq.transport.amqp.joram;
|
||||||
|
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
|
@ -64,7 +66,7 @@ import org.objectweb.jtests.jms.conform.topic.TemporaryTopicTest;
|
||||||
public class JoramJmsTest {
|
public class JoramJmsTest {
|
||||||
|
|
||||||
@Rule
|
@Rule
|
||||||
public Timeout timeout = new Timeout(10 * 1000);
|
public Timeout timeout = new Timeout(10, TimeUnit.SECONDS);
|
||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void beforeClass() throws Exception {
|
public static void beforeClass() throws Exception {
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq.transport.amqp.joram;
|
package org.apache.activemq.transport.amqp.joram;
|
||||||
|
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.net.ssl.KeyManager;
|
import javax.net.ssl.KeyManager;
|
||||||
import javax.net.ssl.SSLContext;
|
import javax.net.ssl.SSLContext;
|
||||||
import javax.net.ssl.TrustManager;
|
import javax.net.ssl.TrustManager;
|
||||||
|
@ -73,7 +75,8 @@ public class JoramSslTest {
|
||||||
protected static final Logger LOG = LoggerFactory.getLogger(JoramSslTest.class);
|
protected static final Logger LOG = LoggerFactory.getLogger(JoramSslTest.class);
|
||||||
|
|
||||||
@Rule
|
@Rule
|
||||||
public Timeout to = new Timeout(10 * 1000);
|
public Timeout timeout = new Timeout(10, TimeUnit.SECONDS);
|
||||||
|
|
||||||
static SSLContext def;
|
static SSLContext def;
|
||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
|
|
Loading…
Reference in New Issue