camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1408298 - in /camel/branches/camel-2.10.x: ./ components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocityOverridesPropertiesTest.java
Date Mon, 12 Nov 2012 14:21:52 GMT
Author: davsclaus
Date: Mon Nov 12 14:21:51 2012
New Revision: 1408298

URL: http://svn.apache.org/viewvc?rev=1408298&view=rev
Log:
Fixed test

Modified:
    camel/branches/camel-2.10.x/   (props changed)
    camel/branches/camel-2.10.x/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocityOverridesPropertiesTest.java

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
  Merged /camel/trunk:r1408297

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: camel/branches/camel-2.10.x/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocityOverridesPropertiesTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocityOverridesPropertiesTest.java?rev=1408298&r1=1408297&r2=1408298&view=diff
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocityOverridesPropertiesTest.java
(original)
+++ camel/branches/camel-2.10.x/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocityOverridesPropertiesTest.java
Mon Nov 12 14:21:51 2012
@@ -16,27 +16,16 @@
  */
 package org.apache.camel.component.velocity;
 
-import java.io.FileInputStream;
-import java.util.logging.FileHandler;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
 import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.test.junit4.CamelTestSupport;
-import org.apache.commons.io.IOUtils;
 import org.junit.Test;
 
 public class VelocityOverridesPropertiesTest extends CamelTestSupport {
     
     @Test
     public void testOverridingProperties() throws Exception {
-        Logger logger = Logger.getLogger("org.apache.camel.component.velocity");
-        FileHandler fh = new FileHandler("target/camel-velocity-jdk-test.log");
-        logger.addHandler(fh);
-        logger.setLevel(Level.ALL);
-        
         Exchange exchange = template.request("direct:a", new Processor() {
             @Override
             public void process(Exchange exchange) throws Exception {
@@ -48,10 +37,6 @@ public class VelocityOverridesProperties
 
         assertEquals("Dear Christian. You ordered item 7 on Monday.", exchange.getOut().getBody());
         assertEquals("Christian", exchange.getOut().getHeader("name"));
-        
-        String logContent = IOUtils.toString(new FileInputStream("target/camel-velocity-jdk-test.log"),
"UTF-8");
-        assertTrue(logContent.contains("JdkLogChute will use logger 'org.apache.camel.component.velocity.VelocityEndpoint'
at level 'FINEST'"));
-        assertTrue(logContent.contains("Using logger class org.apache.velocity.runtime.log.JdkLogChute"));
     }
 
     protected RouteBuilder createRouteBuilder() throws Exception {



Mime
View raw message