Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 201A7EFF5 for ; Tue, 29 Jan 2013 17:31:51 +0000 (UTC) Received: (qmail 77884 invoked by uid 500); 29 Jan 2013 17:31:51 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 77867 invoked by uid 500); 29 Jan 2013 17:31:50 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 77857 invoked by uid 99); 29 Jan 2013 17:31:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jan 2013 17:31:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jan 2013 17:31:49 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id F3732238897F; Tue, 29 Jan 2013 17:31:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1440012 - /activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQConnectionFactoryTest.java Date: Tue, 29 Jan 2013 17:31:30 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130129173130.F3732238897F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tabish Date: Tue Jan 29 17:31:30 2013 New Revision: 1440012 URL: http://svn.apache.org/viewvc?rev=1440012&view=rev Log: Apply patch for: https://issues.apache.org/jira/browse/AMQ-4281 Modified: activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQConnectionFactoryTest.java Modified: activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQConnectionFactoryTest.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQConnectionFactoryTest.java?rev=1440012&r1=1440011&r2=1440012&view=diff ============================================================================== --- activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQConnectionFactoryTest.java (original) +++ activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/ActiveMQConnectionFactoryTest.java Tue Jan 29 17:31:30 2013 @@ -189,15 +189,18 @@ public class ActiveMQConnectionFactoryTe } }; cf.setExceptionListener(exListener); + connection.close(); connection = (ActiveMQConnection)cf.createConnection(); assertNotNull(connection.getExceptionListener()); assertEquals(exListener, connection.getExceptionListener()); + connection.close(); connection = (ActiveMQConnection)cf.createConnection(); assertEquals(exListener, connection.getExceptionListener()); assertEquals(exListener, cf.getExceptionListener()); + connection.close(); } @@ -213,14 +216,17 @@ public class ActiveMQConnectionFactoryTe }; connection.setClientInternalExceptionListener(listener); cf.setClientInternalExceptionListener(listener); + connection.close(); connection = (ActiveMQConnection)cf.createConnection(); assertNotNull(connection.getClientInternalExceptionListener()); assertEquals(listener, connection.getClientInternalExceptionListener()); + connection.close(); connection = (ActiveMQConnection)cf.createConnection(); assertEquals(listener, connection.getClientInternalExceptionListener()); assertEquals(listener, cf.getClientInternalExceptionListener()); + connection.close(); }