mirror of https://github.com/apache/activemq.git
apply patch for: https://issues.apache.org/jira/browse/AMQ-3896
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1352984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bd31548920
commit
11497e9e98
|
@ -16,6 +16,13 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq.bugs;
|
package org.apache.activemq.bugs;
|
||||||
|
|
||||||
|
import static org.junit.Assert.fail;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.region.policy.FilePendingSubscriberMessageStoragePolicy;
|
import org.apache.activemq.broker.region.policy.FilePendingSubscriberMessageStoragePolicy;
|
||||||
import org.apache.activemq.broker.region.policy.LastImageSubscriptionRecoveryPolicy;
|
import org.apache.activemq.broker.region.policy.LastImageSubscriptionRecoveryPolicy;
|
||||||
|
@ -31,13 +38,6 @@ import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
|
||||||
|
|
||||||
import static org.junit.Assert.fail;
|
|
||||||
|
|
||||||
public class AMQ3622Test {
|
public class AMQ3622Test {
|
||||||
|
|
||||||
protected BrokerService broker;
|
protected BrokerService broker;
|
||||||
|
@ -94,7 +94,8 @@ public class AMQ3622Test {
|
||||||
@Test
|
@Test
|
||||||
public void go() throws Exception {
|
public void go() throws Exception {
|
||||||
StompConnection connection = new StompConnection();
|
StompConnection connection = new StompConnection();
|
||||||
connection.open("localhost", Integer.parseInt(connectionUri.replace("stomp://localhost:", "")));
|
Integer port = Integer.parseInt(connectionUri.split(":")[2]);
|
||||||
|
connection.open("localhost", port);
|
||||||
connection.connect("", "");
|
connection.connect("", "");
|
||||||
connection.subscribe("/topic/foobar", Stomp.Headers.Subscribe.AckModeValues.CLIENT);
|
connection.subscribe("/topic/foobar", Stomp.Headers.Subscribe.AckModeValues.CLIENT);
|
||||||
connection.disconnect();
|
connection.disconnect();
|
||||||
|
|
Loading…
Reference in New Issue