git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1352984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2012-06-22 18:03:33 +00:00
parent bd31548920
commit 11497e9e98
1 changed files with 13 additions and 12 deletions

View File

@ -16,6 +16,13 @@
*/
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.region.policy.FilePendingSubscriberMessageStoragePolicy;
import org.apache.activemq.broker.region.policy.LastImageSubscriptionRecoveryPolicy;
@ -31,13 +38,6 @@ import org.junit.After;
import org.junit.Before;
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 {
protected BrokerService broker;
@ -94,7 +94,8 @@ public class AMQ3622Test {
@Test
public void go() throws Exception {
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.subscribe("/topic/foobar", Stomp.Headers.Subscribe.AckModeValues.CLIENT);
connection.disconnect();