Author: ataylor
Date: 2010-11-26 07:41:48 -0500 (Fri, 26 Nov 2010)
New Revision: 9933
Modified:
branches/2_2_0_HA_Improvements_preMerge/tests/src/org/hornetq/tests/integration/ssl/CoreClientOverSSLTest.java
Log:
fixed resource leak
Modified:
branches/2_2_0_HA_Improvements_preMerge/tests/src/org/hornetq/tests/integration/ssl/CoreClientOverSSLTest.java
===================================================================
---
branches/2_2_0_HA_Improvements_preMerge/tests/src/org/hornetq/tests/integration/ssl/CoreClientOverSSLTest.java 2010-11-26
12:38:11 UTC (rev 9932)
+++
branches/2_2_0_HA_Improvements_preMerge/tests/src/org/hornetq/tests/integration/ssl/CoreClientOverSSLTest.java 2010-11-26
12:41:48 UTC (rev 9933)
@@ -85,6 +85,7 @@
Message m = consumer.receive(1000);
Assert.assertNotNull(m);
Assert.assertEquals(text, m.getBodyBuffer().readString());
+ locator.close();
}
public void testSSLWithIncorrectKeyStorePassword() throws Exception
@@ -104,6 +105,10 @@
{
Assert.assertEquals(HornetQException.NOT_CONNECTED, e.getCode());
}
+ finally
+ {
+ locator.close();
+ }
}
// see
https://jira.jboss.org/jira/browse/HORNETQ-234
@@ -124,6 +129,10 @@
{
Assert.assertEquals(HornetQException.CONNECTION_TIMEDOUT, e.getCode());
}
+ finally
+ {
+ locator.close();
+ }
}
// Package protected ---------------------------------------------