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:11:13 GMT
Repository: servicemix
Updated Branches:
  refs/heads/servicemix-5.x e65c51e38 -> 3c60151bb


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

Branch: refs/heads/servicemix-5.x
Commit: 3c60151bb5212284b2f5ea08d1c73b108f2fa4e0
Parents: e65c51e
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:10: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/3c60151b/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