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 {
|
public void testBindableEnvOverrides() throws Exception {
|
||||||
XaPooledConnectionFactory pcf = new XaPooledConnectionFactory();
|
XaPooledConnectionFactory pcf = new XaPooledConnectionFactory();
|
||||||
assertTrue(pcf instanceof ObjectFactory);
|
assertTrue(pcf instanceof ObjectFactory);
|
||||||
Hashtable<String, String> environment = new Hashtable<String, String>();
|
Hashtable<String, Object> environment = new Hashtable<>();
|
||||||
environment.put("tmFromJndi", String.valueOf(Boolean.FALSE));
|
environment.put("tmFromJndi", Boolean.FALSE);
|
||||||
assertTrue(((ObjectFactory) pcf).getObjectInstance(null, null, null, environment) instanceof XaPooledConnectionFactory);
|
assertTrue(((ObjectFactory) pcf).getObjectInstance(null, null, null, environment) instanceof XaPooledConnectionFactory);
|
||||||
assertFalse(pcf.isTmFromJndi());
|
assertFalse(pcf.isTmFromJndi());
|
||||||
pcf.stop();
|
pcf.stop();
|
||||||
|
|
Loading…
Reference in New Issue