Deprecate PROTOCOL_PROP_NAME, avoid deprecation warning on STOMP tests

This commit is contained in:
Ville Skyttä 2015-07-22 10:21:25 +03:00 committed by Clebert Suconic
parent 9ec45c0230
commit d6f8ed8d70
2 changed files with 3 additions and 1 deletions

View File

@ -53,6 +53,8 @@ public class TransportConstants
public static final String USE_INVM_PROP_NAME = "useInvm";
/** @deprecated use PROTOCOLS_PROP_NAME */
@Deprecated
public static final String PROTOCOL_PROP_NAME = "protocol";
public static final String PROTOCOLS_PROP_NAME = "protocols";

View File

@ -100,7 +100,7 @@ public abstract class StompV11TestBase extends ActiveMQTestBase
protected JMSServerManager createServer() throws Exception
{
Map<String, Object> params = new HashMap<String, Object>();
params.put(TransportConstants.PROTOCOL_PROP_NAME, StompProtocolManagerFactory.STOMP_PROTOCOL_NAME);
params.put(TransportConstants.PROTOCOLS_PROP_NAME, StompProtocolManagerFactory.STOMP_PROTOCOL_NAME);
params.put(TransportConstants.PORT_PROP_NAME, TransportConstants.DEFAULT_STOMP_PORT);
params.put(TransportConstants.STOMP_CONSUMERS_CREDIT, "-1");
TransportConfiguration stompTransport = new TransportConfiguration(NettyAcceptorFactory.class.getName(), params);