cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r453474 - in /incubator/cxf/trunk: jca/src/test/java/org/apache/cxf/jca/core/classloader/ jca/src/test/java/org/apache/cxf/jca/core/resourceadapter/ rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/ rt/frontend/js/src/te...
Date Fri, 06 Oct 2006 03:03:16 GMT
Author: ningjiang
Date: Thu Oct  5 20:03:15 2006
New Revision: 453474

URL: http://svn.apache.org/viewvc?view=rev&rev=453474
Log:
Made JCA test more quit by set the LOGGER LEVEL in test
Fixed some eclipse warnings

Modified:
    incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/core/classloader/PlugInClassLoaderTest.java
    incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/core/resourceadapter/ResourceAdapterInternalExceptionTest.java
    incubator/cxf/trunk/rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptorTest.java
    incubator/cxf/trunk/rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/XMLMessageOutInterceptorTest.java
    incubator/cxf/trunk/rt/frontend/js/src/test/java/org/apache/cxf/js/rhino/ServerAppTest.java
    incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/ReflectionServiceFactoryTest.java

Modified: incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/core/classloader/PlugInClassLoaderTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/core/classloader/PlugInClassLoaderTest.java?view=diff&rev=453474&r1=453473&r2=453474
==============================================================================
--- incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/core/classloader/PlugInClassLoaderTest.java
(original)
+++ incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/core/classloader/PlugInClassLoaderTest.java
Thu Oct  5 20:03:15 2006
@@ -22,6 +22,7 @@
 import java.io.InputStream;
 import java.net.URL;
 import java.security.ProtectionDomain;
+import java.util.logging.Level;
 import java.util.logging.Logger;
 
 import junit.framework.Test;
@@ -32,8 +33,9 @@
 
 public class PlugInClassLoaderTest extends TestCase {
     private static final Logger LOG = Logger.getLogger(PlugInClassLoaderTest.class.getName());
+    private static boolean debug;
     PlugInClassLoader plugInClassLoader;
-
+   
     public PlugInClassLoaderTest(String name) {
         super(name);
     }
@@ -48,6 +50,11 @@
 
     public void setUp() throws Exception {
         plugInClassLoader = new PlugInClassLoader(getClass().getClassLoader());
+        if (debug) {
+            LOG.setLevel(Level.INFO);
+        } else {
+            LOG.setLevel(Level.WARNING);
+        }
     }
 
     public void testLoadClassWithPlugInClassLoader() throws Exception {

Modified: incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/core/resourceadapter/ResourceAdapterInternalExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/core/resourceadapter/ResourceAdapterInternalExceptionTest.java?view=diff&rev=453474&r1=453473&r2=453474
==============================================================================
--- incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/core/resourceadapter/ResourceAdapterInternalExceptionTest.java
(original)
+++ incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/core/resourceadapter/ResourceAdapterInternalExceptionTest.java
Thu Oct  5 20:03:15 2006
@@ -18,18 +18,33 @@
  */
 package org.apache.cxf.jca.core.resourceadapter;
 
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
 import junit.framework.Test;
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
 public class ResourceAdapterInternalExceptionTest extends TestCase {
+    private static final Logger EXCEPTION_LOGGER = 
+        Logger.getLogger(ResourceAdapterInternalException.class.getName());
+    private Level logLevel;  
 
     public ResourceAdapterInternalExceptionTest(String name) {
         super(name);
     }
 
     public static Test suite() {
-        return new TestSuite(ResourceAdapterInternalExceptionTest.class);
+        return new TestSuite(ResourceAdapterInternalExceptionTest.class);        
+    }
+    
+    public void setUp() throws Exception { 
+        logLevel = EXCEPTION_LOGGER.getLevel();
+        EXCEPTION_LOGGER.setLevel(Level.SEVERE);
+    } 
+    
+    public void tearDown() throws Exception {
+        EXCEPTION_LOGGER.setLevel(logLevel);
     }
     
     public void testMessage() {

Modified: incubator/cxf/trunk/rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptorTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptorTest.java?view=diff&rev=453474&r1=453473&r2=453474
==============================================================================
--- incubator/cxf/trunk/rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptorTest.java
(original)
+++ incubator/cxf/trunk/rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptorTest.java
Thu Oct  5 20:03:15 2006
@@ -41,10 +41,6 @@
         chain.add(in);
     }
 
-    public void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     public void testHandleMessageOnBareMultiParam() throws Exception {
         String ns = "http://apache.org/hello_world_xml_http/bare";
         prepareMessage("/message-bare-multi-param.xml");

Modified: incubator/cxf/trunk/rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/XMLMessageOutInterceptorTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/XMLMessageOutInterceptorTest.java?view=diff&rev=453474&r1=453473&r2=453474
==============================================================================
--- incubator/cxf/trunk/rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/XMLMessageOutInterceptorTest.java
(original)
+++ incubator/cxf/trunk/rt/bindings/xml/src/test/java/org/apache/cxf/binding/xml/interceptor/XMLMessageOutInterceptorTest.java
Thu Oct  5 20:03:15 2006
@@ -72,11 +72,7 @@
         chain.add(out);
         prepareMessage(params);
     }
-
-    public void tearDown() throws Exception {
-        super.tearDown();
-    }
-
+   
     public void testBareOutSingle() throws Exception {
 
         MyComplexStructType myComplexStruct = new MyComplexStructType();

Modified: incubator/cxf/trunk/rt/frontend/js/src/test/java/org/apache/cxf/js/rhino/ServerAppTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/js/src/test/java/org/apache/cxf/js/rhino/ServerAppTest.java?view=diff&rev=453474&r1=453473&r2=453474
==============================================================================
--- incubator/cxf/trunk/rt/frontend/js/src/test/java/org/apache/cxf/js/rhino/ServerAppTest.java
(original)
+++ incubator/cxf/trunk/rt/frontend/js/src/test/java/org/apache/cxf/js/rhino/ServerAppTest.java
Thu Oct  5 20:03:15 2006
@@ -40,10 +40,6 @@
         emptyFile = getClass().getResource("empty/empty.js").getFile();
     }
 
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     private ServerApp createServerApp() {
         return new ServerApp() {
                 protected ProviderFactory createProviderFactory() {

Modified: incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/ReflectionServiceFactoryTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/ReflectionServiceFactoryTest.java?view=diff&rev=453474&r1=453473&r2=453474
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/ReflectionServiceFactoryTest.java
(original)
+++ incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/ReflectionServiceFactoryTest.java
Thu Oct  5 20:03:15 2006
@@ -120,8 +120,7 @@
         serviceFactory.setBus(getBus());
         serviceFactory.setServiceClass(HelloService.class);
         
-        Service service = serviceFactory.create();
-        return service;
+        return serviceFactory.create();        
     }
     
     public void testServerFactoryBean() throws Exception {



Mime
View raw message