Author: gaohoward
Date: 2011-10-12 10:24:04 -0400 (Wed, 12 Oct 2011)
New Revision: 11526
Modified:
trunk/hornetq-core/src/main/java/org/hornetq/core/server/HornetQServers.java
Log:
fix broken tests
Modified: trunk/hornetq-core/src/main/java/org/hornetq/core/server/HornetQServers.java
===================================================================
---
trunk/hornetq-core/src/main/java/org/hornetq/core/server/HornetQServers.java 2011-10-12
14:21:55 UTC (rev 11525)
+++
trunk/hornetq-core/src/main/java/org/hornetq/core/server/HornetQServers.java 2011-10-12
14:24:04 UTC (rev 11526)
@@ -108,4 +108,19 @@
return server;
}
+ public static HornetQServer newHornetQServer(final Configuration config,
+ final MBeanServer mbeanServer,
+ final boolean enablePersistence,
+ String user,
+ String password)
+ {
+ HornetQSecurityManager securityManager = new HornetQSecurityManagerImpl();
+
+ securityManager.addUser(user, password);
+
+ HornetQServer server = HornetQServers.newHornetQServer(config, mbeanServer,
securityManager, enablePersistence);
+
+ return server;
+ }
+
}
Show replies by date