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 300d0b9e83
commit 6c07033c58
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();