mirror of https://github.com/apache/activemq.git
AMQ-7516 - Fix XAConenctionPoolTest after change to make tmFromJndi an
object
This commit is contained in:
parent
295b3acb9e
commit
6c0cb4143d
|
@ -322,8 +322,8 @@ public class XAConnectionPoolTest extends JmsPoolTestSupport {
|
|||
public void testBindableEnvOverrides() throws Exception {
|
||||
XaPooledConnectionFactory pcf = new XaPooledConnectionFactory();
|
||||
assertTrue(pcf instanceof ObjectFactory);
|
||||
Hashtable<String, String> environment = new Hashtable<String, String>();
|
||||
environment.put("tmFromJndi", String.valueOf(Boolean.FALSE));
|
||||
Hashtable<String, Object> environment = new Hashtable<>();
|
||||
environment.put("tmFromJndi", Boolean.FALSE);
|
||||
assertTrue(((ObjectFactory) pcf).getObjectInstance(null, null, null, environment) instanceof XaPooledConnectionFactory);
|
||||
assertFalse(pcf.isTmFromJndi());
|
||||
pcf.stop();
|
||||
|
|
Loading…
Reference in New Issue