mirror of
https://github.com/apache/activemq.git
synced 2025-02-17 07:24:51 +00:00
modified test case to use TCP to force marshalling of the MesagePull command to check thats working
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@430716 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c26d8a9d0d
commit
fb5a3730db
@ -68,9 +68,17 @@ public class TestSupport extends TestCase {
|
||||
}
|
||||
|
||||
protected Destination createDestination() {
|
||||
return createDestination(getClass().getName() + "." + getName());
|
||||
return createDestination(getDestinationString());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the destination used in this test case
|
||||
*/
|
||||
protected String getDestinationString() {
|
||||
return getClass().getName() + "." + getName();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param messsage
|
||||
* @param firstSet
|
||||
|
@ -34,7 +34,7 @@ import javax.jms.Session;
|
||||
*
|
||||
* @version $Revision$
|
||||
*/
|
||||
public class ZeroPrefetchConsumerTest extends TestSupport {
|
||||
public class ZeroPrefetchConsumerTest extends EmbeddedBrokerTestSupport {
|
||||
|
||||
private static final Log log = LogFactory.getLog(ZeroPrefetchConsumerTest.class);
|
||||
|
||||
@ -68,7 +68,7 @@ public class ZeroPrefetchConsumerTest extends TestSupport {
|
||||
}
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
topic = false;
|
||||
bindAddress = "tcp://localhost:61616";
|
||||
super.setUp();
|
||||
|
||||
connection = createConnection();
|
||||
@ -82,7 +82,7 @@ public class ZeroPrefetchConsumerTest extends TestSupport {
|
||||
}
|
||||
|
||||
protected Queue createQueue() {
|
||||
return new ActiveMQQueue(getClass().getName() + "." + getName() + "?consumer.prefetchSize=0");
|
||||
return new ActiveMQQueue(getDestinationString() + "?consumer.prefetchSize=0");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user