directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcon...@apache.org
Subject svn commit: r504940 - /directory/sandbox/jconlon/osgi-mina/mina-osgi-example-integration-test/src/test/java/org/apache/mina/osgi/example/chat/test/MinaOSGIExampleChatBundleTest.java
Date Thu, 08 Feb 2007 16:20:47 GMT
Author: jconlon
Date: Thu Feb  8 08:20:46 2007
New Revision: 504940

URL: http://svn.apache.org/viewvc?view=rev&rev=504940
Log:
Set a system prop to find a log configuration file.

Modified:
    directory/sandbox/jconlon/osgi-mina/mina-osgi-example-integration-test/src/test/java/org/apache/mina/osgi/example/chat/test/MinaOSGIExampleChatBundleTest.java

Modified: directory/sandbox/jconlon/osgi-mina/mina-osgi-example-integration-test/src/test/java/org/apache/mina/osgi/example/chat/test/MinaOSGIExampleChatBundleTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/jconlon/osgi-mina/mina-osgi-example-integration-test/src/test/java/org/apache/mina/osgi/example/chat/test/MinaOSGIExampleChatBundleTest.java?view=diff&rev=504940&r1=504939&r2=504940
==============================================================================
--- directory/sandbox/jconlon/osgi-mina/mina-osgi-example-integration-test/src/test/java/org/apache/mina/osgi/example/chat/test/MinaOSGIExampleChatBundleTest.java
(original)
+++ directory/sandbox/jconlon/osgi-mina/mina-osgi-example-integration-test/src/test/java/org/apache/mina/osgi/example/chat/test/MinaOSGIExampleChatBundleTest.java
Thu Feb  8 08:20:46 2007
@@ -59,7 +59,7 @@
     private static final int port = 1234;
     LogService logService;
     static {
-//        System.setProperty("log4j.configuration","file:src/test/resources/log4j.properties");
+        System.setProperty("log4j.configuration","file:src/test/resources/log4j.properties");
     }
 
     
@@ -111,7 +111,7 @@
         BundleContext bundleContext = getBundleContext();
         assertNotNull(bundleContext);
         
-        assertEquals(20,bundleContext.getBundles().length);
+        assertEquals(22,bundleContext.getBundles().length);
     }
 
     /**
@@ -185,7 +185,7 @@
           fail("Testing Task interupted");
       } catch (ExecutionException e){
           RuntimeException ex = launderThrowable(e.getCause());
-          log.error("Execution execption", ex);
+          logService.log( LogService.LOG_ERROR, "Execution execption", ex);
           fail(ex.toString());
       } catch (TimeoutException e){
           fail(e.toString());



Mime
View raw message