mirror of https://github.com/apache/activemq.git
[AMQ-6586] Compilation of activemq-unit-test fails
This commit is contained in:
parent
776418bae6
commit
659d1f6ba5
|
@ -191,9 +191,9 @@ public class QueuePurgeTest extends CombinationTestSupport {
|
||||||
private void testConcurrentPurgeAndSend(boolean prioritizedMessages) throws Exception {
|
private void testConcurrentPurgeAndSend(boolean prioritizedMessages) throws Exception {
|
||||||
applyBrokerSpoolingPolicy(false);
|
applyBrokerSpoolingPolicy(false);
|
||||||
createProducerAndSendMessages(NUM_TO_SEND / 2);
|
createProducerAndSendMessages(NUM_TO_SEND / 2);
|
||||||
QueueViewMBean proxy = getProxyToQueueViewMBean();
|
final QueueViewMBean proxy = getProxyToQueueViewMBean();
|
||||||
createConsumer();
|
createConsumer();
|
||||||
long start = System.currentTimeMillis();
|
final long start = System.currentTimeMillis();
|
||||||
ExecutorService service = Executors.newFixedThreadPool(1);
|
ExecutorService service = Executors.newFixedThreadPool(1);
|
||||||
try {
|
try {
|
||||||
LOG.info("purging..");
|
LOG.info("purging..");
|
||||||
|
|
|
@ -105,7 +105,7 @@ public class TcpTransportCloseSocketTest {
|
||||||
factory.setBrokerURL(uri);
|
factory.setBrokerURL(uri);
|
||||||
factory.setClientID("id");
|
factory.setClientID("id");
|
||||||
|
|
||||||
TcpTransportServer server = (TcpTransportServer) brokerService.getTransportConnectorByName("tcp").getServer();
|
final TcpTransportServer server = (TcpTransportServer) brokerService.getTransportConnectorByName("tcp").getServer();
|
||||||
|
|
||||||
//Try and create 2 connections, the second should fail because of a duplicate clientId
|
//Try and create 2 connections, the second should fail because of a duplicate clientId
|
||||||
int failed = 0;
|
int failed = 0;
|
||||||
|
|
Loading…
Reference in New Issue