servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ksobkow...@apache.org
Subject servicemix git commit: [SM-2850] Fix for test failure
Date Fri, 12 Feb 2016 23:23:04 GMT
Repository: servicemix
Updated Branches:
  refs/heads/servicemix-6.0.x 43daed429 -> ee5517971


[SM-2850] Fix for test failure


Project: http://git-wip-us.apache.org/repos/asf/servicemix/repo
Commit: http://git-wip-us.apache.org/repos/asf/servicemix/commit/ee551797
Tree: http://git-wip-us.apache.org/repos/asf/servicemix/tree/ee551797
Diff: http://git-wip-us.apache.org/repos/asf/servicemix/diff/ee551797

Branch: refs/heads/servicemix-6.0.x
Commit: ee551797155bc20089bf1ae93fe519d24c80aa84
Parents: 43daed4
Author: Christian Schneider <chris@die-schneider.net>
Authored: Mon Feb 1 16:56:58 2016 +0100
Committer: Krzysztof Sobkowiak <krzys.sobkowiak@gmail.com>
Committed: Sat Feb 13 00:22:49 2016 +0100

----------------------------------------------------------------------
 .../org/apache/servicemix/logging/jms/JMSAppenderTest.java   | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/servicemix/blob/ee551797/logging/jms-appender/src/test/java/org/apache/servicemix/logging/jms/JMSAppenderTest.java
----------------------------------------------------------------------
diff --git a/logging/jms-appender/src/test/java/org/apache/servicemix/logging/jms/JMSAppenderTest.java
b/logging/jms-appender/src/test/java/org/apache/servicemix/logging/jms/JMSAppenderTest.java
index f019f4a..50079fa 100644
--- a/logging/jms-appender/src/test/java/org/apache/servicemix/logging/jms/JMSAppenderTest.java
+++ b/logging/jms-appender/src/test/java/org/apache/servicemix/logging/jms/JMSAppenderTest.java
@@ -46,11 +46,17 @@ public class JMSAppenderTest extends CamelTestSupport {
     }
 
     @Before
-    public void setupBrokerAndAppender() throws Exception {
+    public void setupAppender() throws Exception {
         appender = new JMSAppender();
         appender.setDestinationName(EVENTS_TOPIC);
         appender.onBind(new ActiveMQConnectionFactory(broker.getVmConnectorURI().toString()
+ "?create=false"));
     }
+    
+    @After
+    public void closeAppender() throws Exception {
+        appender.onUnbind(null);
+        appender.close();
+    }
 
     @AfterClass
     public static void stopBroker() throws Exception {


Mime
View raw message