camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1209475 - /camel/trunk/components/camel-freemarker/src/test/java/org/apache/camel/component/freemarker/FreemarkerContentCacheTest.java
Date Fri, 02 Dec 2011 13:38:20 GMT
Author: ningjiang
Date: Fri Dec  2 13:38:20 2011
New Revision: 1209475

URL: http://svn.apache.org/viewvc?rev=1209475&view=rev
Log:
CAMEL-4732 updated the cached time value of the test

Modified:
    camel/trunk/components/camel-freemarker/src/test/java/org/apache/camel/component/freemarker/FreemarkerContentCacheTest.java

Modified: camel/trunk/components/camel-freemarker/src/test/java/org/apache/camel/component/freemarker/FreemarkerContentCacheTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-freemarker/src/test/java/org/apache/camel/component/freemarker/FreemarkerContentCacheTest.java?rev=1209475&r1=1209474&r2=1209475&view=diff
==============================================================================
--- camel/trunk/components/camel-freemarker/src/test/java/org/apache/camel/component/freemarker/FreemarkerContentCacheTest.java
(original)
+++ camel/trunk/components/camel-freemarker/src/test/java/org/apache/camel/component/freemarker/FreemarkerContentCacheTest.java
Fri Dec  2 13:38:20 2011
@@ -92,7 +92,7 @@ public class FreemarkerContentCacheTest 
         mock.assertIsSatisfied();
 
         // now change content in the file in the classpath and try again .... after delaying
longer than the cache update delay
-        Thread.sleep(5000);
+        Thread.sleep(2000);
         template.sendBodyAndHeader("file://target/test-classes/org/apache/camel/component/freemarker?fileExist=Override",
"Bye ${headers.name}", Exchange.FILE_NAME, "hello.ftl");
 
         mock.reset();
@@ -110,7 +110,7 @@ public class FreemarkerContentCacheTest 
 
                 from("direct:b").to("freemarker://org/apache/camel/component/freemarker/hello.ftl?contentCache=true").to("mock:result");
                 
-                from("direct:c").to("freemarker://org/apache/camel/component/freemarker/hello.ftl?contentCache=true&templateUpdateDelay=4").to("mock:result");
+                from("direct:c").to("freemarker://org/apache/camel/component/freemarker/hello.ftl?contentCache=true&templateUpdateDelay=1").to("mock:result");
             }
         };
     }



Mime
View raw message