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
300d0b9e83
commit
6c07033c58
|
@ -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