You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2020/03/10 02:08:45 UTC
[activemq-artemis] branch master updated: NO-JIRA fix errant test
directory
This is an automated email from the ASF dual-hosted git repository.
jbertram pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/master by this push:
new ec958d7 NO-JIRA fix errant test directory
ec958d7 is described below
commit ec958d7d27f545de44ff9f86c06da03d1c8b368c
Author: Justin Bertram <jb...@apache.org>
AuthorDate: Mon Mar 9 09:18:33 2020 -0500
NO-JIRA fix errant test directory
---
.../tests/integration/stomp/StompWebSocketTest.java | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompWebSocketTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompWebSocketTest.java
index 4dcd4fe..6a9a088 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompWebSocketTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompWebSocketTest.java
@@ -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";
}
}