qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oru...@apache.org
Subject svn commit: r1674338 - in /qpid/java/trunk/systests/src/main/java/org/apache/qpid/test/utils: InternalBrokerHolder.java QpidBrokerTestCase.java
Date Fri, 17 Apr 2015 15:37:34 GMT
Author: orudyy
Date: Fri Apr 17 15:37:33 2015
New Revision: 1674338

URL: http://svn.apache.org/r1674338
Log:
NO-JIRA: Display message containing test name on shutdown of internal broker in system tests

Modified:
    qpid/java/trunk/systests/src/main/java/org/apache/qpid/test/utils/InternalBrokerHolder.java
    qpid/java/trunk/systests/src/main/java/org/apache/qpid/test/utils/QpidBrokerTestCase.java

Modified: qpid/java/trunk/systests/src/main/java/org/apache/qpid/test/utils/InternalBrokerHolder.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/systests/src/main/java/org/apache/qpid/test/utils/InternalBrokerHolder.java?rev=1674338&r1=1674337&r2=1674338&view=diff
==============================================================================
--- qpid/java/trunk/systests/src/main/java/org/apache/qpid/test/utils/InternalBrokerHolder.java
(original)
+++ qpid/java/trunk/systests/src/main/java/org/apache/qpid/test/utils/InternalBrokerHolder.java
Fri Apr 17 15:37:33 2015
@@ -21,6 +21,7 @@
 package org.apache.qpid.test.utils;
 
 import java.security.PrivilegedAction;
+import java.util.Map;
 import java.util.Set;
 
 import javax.security.auth.Subject;
@@ -47,7 +48,7 @@ public class InternalBrokerHolder implem
     }
 
     @Override
-    public void start(BrokerOptions options) throws Exception
+    public void start(final BrokerOptions options) throws Exception
     {
         if (Thread.getDefaultUncaughtExceptionHandler() == null)
         {
@@ -71,6 +72,12 @@ public class InternalBrokerHolder implem
             @Override
             public void performAction(final Integer object)
             {
+                Map<String,String> properties =  options.getConfigProperties();
+                if (properties.containsKey("test.name"))
+                {
+                    String message = "Broker running on ports " + _portsUsedByBroker + "
is shutdown for test " + properties.get("test.name");
+                    System.out.println(message);
+                }
                 _broker = null;
             }
         });

Modified: qpid/java/trunk/systests/src/main/java/org/apache/qpid/test/utils/QpidBrokerTestCase.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/systests/src/main/java/org/apache/qpid/test/utils/QpidBrokerTestCase.java?rev=1674338&r1=1674337&r2=1674338&view=diff
==============================================================================
--- qpid/java/trunk/systests/src/main/java/org/apache/qpid/test/utils/QpidBrokerTestCase.java
(original)
+++ qpid/java/trunk/systests/src/main/java/org/apache/qpid/test/utils/QpidBrokerTestCase.java
Fri Apr 17 15:37:33 2015
@@ -1243,6 +1243,7 @@ public class QpidBrokerTestCase extends
         options.setSkipLoggingConfiguration(skipLoggingConfiguration);
         options.setLogConfigFileLocation(log4jConfig);
         options.setStartupLoggedToSystemOut(false);
+        options.setConfigProperty("test.name", getClass().getSimpleName() + "-" + getName());
         return options;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message