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 Mon, 01 Feb 2016 16:06:32 GMT
Repository: servicemix
Updated Branches:
  refs/heads/master 21611fa55 -> dcfea610e


[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/dcfea610
Tree: http://git-wip-us.apache.org/repos/asf/servicemix/tree/dcfea610
Diff: http://git-wip-us.apache.org/repos/asf/servicemix/diff/dcfea610

Branch: refs/heads/master
Commit: dcfea610e0585b8ed9cf50d467957320eec1b43f
Parents: 21611fa
Author: Christian Schneider <chris@die-schneider.net>
Authored: Mon Feb 1 16:56:58 2016 +0100
Committer: Christian Schneider <chris@die-schneider.net>
Committed: Mon Feb 1 16:56:58 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/dcfea610/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 20b75b7..f1d0198 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