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:10:30 GMT
Repository: servicemix
Updated Branches:
  refs/heads/servicemix-6.x 13cd1037f -> 9e47cbc8a


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

Branch: refs/heads/servicemix-6.x
Commit: 9e47cbc8ab40e3074e7901abcdba781224ecfd6a
Parents: 13cd103
Author: Christian Schneider <chris@die-schneider.net>
Authored: Mon Feb 1 16:56:58 2016 +0100
Committer: Krzysztof Sobkowiak <krzys.sobkowiak@gmail.com>
Committed: Mon Feb 1 17:09:06 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/9e47cbc8/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