NO-JIRA fix errant test directory
This commit is contained in:
parent
a60cb229dc
commit
ec958d7d27
|
@ -28,11 +28,10 @@ import org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptorFactory
|
|||
import org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants;
|
||||
import org.apache.activemq.artemis.core.server.ActiveMQServer;
|
||||
import org.apache.activemq.artemis.core.server.ActiveMQServers;
|
||||
import org.apache.activemq.artemis.tests.util.ActiveMQTestBase;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
public class StompWebSocketTest extends ActiveMQTestBase {
|
||||
public class StompWebSocketTest extends StompTestBase {
|
||||
|
||||
private ActiveMQServer server;
|
||||
|
||||
|
@ -59,19 +58,27 @@ public class StompWebSocketTest extends ActiveMQTestBase {
|
|||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
private ActiveMQServer createServer() throws Exception {
|
||||
@Override
|
||||
protected ActiveMQServer createServer() throws Exception {
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put(TransportConstants.PROTOCOLS_PROP_NAME, StompProtocolManagerFactory.STOMP_PROTOCOL_NAME);
|
||||
params.put(TransportConstants.PORT_PROP_NAME, TransportConstants.DEFAULT_STOMP_PORT + 1);
|
||||
TransportConfiguration stompTransport = new TransportConfiguration(NettyAcceptorFactory.class.getName(), params);
|
||||
|
||||
Configuration config = createBasicConfig().addAcceptorConfiguration(stompTransport).addAcceptorConfiguration(new TransportConfiguration(InVMAcceptorFactory.class.getName())).addQueueConfiguration(new CoreQueueConfiguration().setAddress(getQueueName()).setName(getQueueName()).setDurable(false));
|
||||
Configuration config = createBasicConfig()
|
||||
.addAcceptorConfiguration(stompTransport)
|
||||
.addAcceptorConfiguration(new TransportConfiguration(InVMAcceptorFactory.class.getName()))
|
||||
.setPersistenceEnabled(isPersistenceEnabled())
|
||||
.addQueueConfiguration(new CoreQueueConfiguration()
|
||||
.setAddress(getQueueName())
|
||||
.setName(getQueueName())
|
||||
.setDurable(false));
|
||||
|
||||
server = addServer(ActiveMQServers.newActiveMQServer(config));
|
||||
return server;
|
||||
}
|
||||
|
||||
protected String getQueueName() {
|
||||
protected static String getQueueName() {
|
||||
return "/queue/test";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue