Author: borges
Date: 2012-01-05 09:06:46 -0500 (Thu, 05 Jan 2012)
New Revision: 11976
Modified:
trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/jms/client/MessageTest.java
Log:
Close connection (fixes test)
Modified:
trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/jms/client/MessageTest.java
===================================================================
---
trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/jms/client/MessageTest.java 2012-01-05
14:06:17 UTC (rev 11975)
+++
trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/jms/client/MessageTest.java 2012-01-05
14:06:46 UTC (rev 11976)
@@ -57,14 +57,17 @@
// Public --------------------------------------------------------
- //https://jira.jboss.org/jira/browse/HORNETQ-242
+ /**
+ * @see
https://jira.jboss.org/jira/browse/HORNETQ-242
+ */
public void testStreamMessageReadsNull() throws Exception
{
Connection conn = cf.createConnection();
-
+ try
+ {
Queue queue = createQueue("testQueue");
- Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
+ Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer prod = sess.createProducer(queue);
@@ -196,6 +199,11 @@
{
//Ok
}
+ }
+ finally
+ {
+ conn.close();
+ }
}
public void testNullProperties() throws Exception