servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r704441 - in /servicemix/components/bindings/servicemix-cxf-bc/trunk: pom.xml src/test/java/org/apache/servicemix/cxfbc/provider/CxfBCSEProviderSystemTest.java src/test/resources/logging.properties
Date Tue, 14 Oct 2008 10:31:30 GMT
Author: ffang
Date: Tue Oct 14 03:31:30 2008
New Revision: 704441

URL: http://svn.apache.org/viewvc?rev=704441&view=rev
Log:
[SM-1601]Excessive console output from cxfbc tests

Added:
    servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/resources/logging.properties
  (with props)
Modified:
    servicemix/components/bindings/servicemix-cxf-bc/trunk/pom.xml
    servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/provider/CxfBCSEProviderSystemTest.java

Modified: servicemix/components/bindings/servicemix-cxf-bc/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-cxf-bc/trunk/pom.xml?rev=704441&r1=704440&r2=704441&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-cxf-bc/trunk/pom.xml (original)
+++ servicemix/components/bindings/servicemix-cxf-bc/trunk/pom.xml Tue Oct 14 03:31:30 2008
@@ -556,10 +556,6 @@
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-surefire-plugin</artifactId>
             <configuration>
-              <excludes>
-                <exclude>**/CxfBCMtomJMSFlowTest.java</exclude>
-                <exclude>**/CxfBcHttpJmsBridgeMtomTest.java</exclude>
-              </excludes>
               <forkMode>${surefire.fork.mode}</forkMode>
               <systemProperties>
                 <property>
@@ -593,6 +589,18 @@
                   <name>java.security.properties</name>
                   <value>${basedir}/target/test-classes/ibm.security</value>
                 </property>
+                <!--
+                  Turn down some of the logging to prevent the tests from
+                  running too slowly.
+                -->
+                <property>
+                  <name>log4j.configuration</name>
+                  <value>${basedir}/target/test-classes/log4j-tests.properties</value>
+                </property>
+                <property>
+                  <name>java.util.logging.config.file</name>
+                  <value>${basedir}/target/test-classes/logging.properties</value>
+                </property>
                 <property>
                     <name>javax.xml.transform.TransformerFactory</name>
                     <value>org.apache.xalan.xsltc.trax.TransformerFactoryImpl</value>

Modified: servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/provider/CxfBCSEProviderSystemTest.java
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/provider/CxfBCSEProviderSystemTest.java?rev=704441&r1=704440&r2=704441&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/provider/CxfBCSEProviderSystemTest.java
(original)
+++ servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/provider/CxfBCSEProviderSystemTest.java
Tue Oct 14 03:31:30 2008
@@ -230,7 +230,7 @@
         if ("ffang".equals(name)) {
             //in this case, the server is intended to sleep 3 sec,
             //which will cause time out both for sync and async invoke
-            assertTrue(txt.indexOf("JMS receive timed out") >= 0);
+            assertTrue(txt.indexOf("Timeout receiving message") >= 0);
         } else {
             //in this case, both sync and async invocation shouldn't see the timeout problem
             assertTrue(txt.indexOf("Hello " + name) >= 0);

Added: servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/resources/logging.properties
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/resources/logging.properties?rev=704441&view=auto
==============================================================================
--- servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/resources/logging.properties
(added)
+++ servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/resources/logging.properties
Tue Oct 14 03:31:30 2008
@@ -0,0 +1,55 @@
+############################################################
+#       Default Logging Configuration File
+#
+# You can use a different file by specifying a filename
+# with the java.util.logging.config.file system property.
+# For example java -Djava.util.logging.config.file=myfile
+############################################################
+
+############################################################
+#       Global properties
+############################################################
+
+# "handlers" specifies a comma separated list of log Handler
+# classes.  These handlers will be installed during VM startup.
+# Note that these classes must be on the system classpath.
+# By default we only configure a ConsoleHandler, which will only
+# show messages at the INFO and above levels.
+#handlers= java.util.logging.ConsoleHandler
+
+# To also add the FileHandler, use the following line instead.
+handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
+
+# Default global logging level.
+# This specifies which kinds of events are logged across
+# all loggers.  For any given facility this global level
+# can be overriden by a facility specific level
+# Note that the ConsoleHandler also has a separate level
+# setting to limit messages printed to the console.
+.level= SEVERE
+
+############################################################
+# Handler specific properties.
+# Describes specific configuration info for Handlers.
+############################################################
+
+# default file output is in user's home directory.
+java.util.logging.FileHandler.pattern = target/servicemix-cxfbc%u.log
+java.util.logging.FileHandler.limit = 50000
+java.util.logging.FileHandler.count = 1
+java.util.logging.FileHandler.level = INFO
+java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
+
+# Limit the message that are printed on the console to SEVERE and above.
+java.util.logging.ConsoleHandler.level = SEVERE
+java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
+
+
+############################################################
+# Facility specific properties. 
+# Provides extra control for each logger. 
+############################################################
+
+# For example, set the com.xyz.foo logger to only log SEVERE
+# messages:
+#com.xyz.foo.level = SEVERE

Propchange: servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/resources/logging.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/resources/logging.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/resources/logging.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message