AMQ-7516 - Fix XAConenctionPoolTest after change to make tmFromJndi an

object
This commit is contained in:
Christopher L. Shannon (cshannon) 2020-07-16 08:18:01 -04:00
parent 295b3acb9e
commit 6c0cb4143d
1 changed files with 2 additions and 2 deletions

View File

@ -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();