Author: davsclaus Date: Fri Nov 20 07:06:31 2009 New Revision: 882428 URL: http://svn.apache.org/viewvc?rev=882428&view=rev Log: CAMEL-2143: Fixed unit test
Modified: camel/trunk/components/camel-cache/src/test/java/org/apache/camel/component/cache/CacheProducerTest.java Modified: camel/trunk/components/camel-cache/src/test/java/org/apache/camel/component/cache/CacheProducerTest.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cache/src/test/java/org/apache/camel/component/cache/CacheProducerTest.java?rev=882428&r1=882427&r2=882428&view=diff ============================================================================== --- camel/trunk/components/camel-cache/src/test/java/org/apache/camel/component/cache/CacheProducerTest.java (original) +++ camel/trunk/components/camel-cache/src/test/java/org/apache/camel/component/cache/CacheProducerTest.java Fri Nov 20 07:06:31 2009 @@ -40,7 +40,7 @@ } private void sendFile() throws Exception { - template.send("direct:start", new Processor() { + template.send("direct:a", new Processor() { public void process(Exchange exchange) throws Exception { // Read from an input stream InputStream is = new BufferedInputStream( @@ -58,7 +58,7 @@ } private void sendUpdatedFile() throws Exception { - template.send("direct:start", new Processor() { + template.send("direct:a", new Processor() { public void process(Exchange exchange) throws Exception { // Read from an input stream InputStream is = new BufferedInputStream( @@ -79,7 +79,7 @@ public void testAddingDataToCache() throws Exception { context.addRoutes(new RouteBuilder() { public void configure() { - from("direct:start"). + from("direct:b"). setHeader("CACHE_OPERATION", constant("ADD")). setHeader("CACHE_KEY", constant("Ralph_Waldo_Emerson")). to("cache://TestCache1"); @@ -94,7 +94,7 @@ public void testUpdatingDataInCache() throws Exception { context.addRoutes(new RouteBuilder() { public void configure() { - from("direct:start"). + from("direct:b"). setHeader("CACHE_OPERATION", constant("UPDATE")). setHeader("CACHE_KEY", constant("Ralph_Waldo_Emerson")). to("cache://TestCache1"); @@ -109,7 +109,7 @@ public void testDeletingDataFromCache() throws Exception { context.addRoutes(new RouteBuilder() { public void configure() { - from("direct:start"). + from("direct:c"). setHeader("CACHE_OPERATION", constant("DELETE")). setHeader("CACHE_KEY", constant("Ralph_Waldo_Emerson")). to("cache://TestCache1"); @@ -124,15 +124,15 @@ public void testDeletingAllDataFromCache() throws Exception { context.addRoutes(new RouteBuilder() { public void configure() { - from("direct:start"). + from("direct:a"). setHeader("CACHE_OPERATION", constant("ADD")). setHeader("CACHE_KEY", constant("Ralph_Waldo_Emerson")). to("cache://TestCache1"); - from("direct:start"). + from("direct:b"). setHeader("CACHE_OPERATION", constant("ADD")). setHeader("CACHE_KEY", constant("Ralph_Waldo_Emerson2")). to("cache://TestCache1"); - from("direct:start"). + from("direct:c"). setHeader("CACHE_OPERATION", constant("DELETEALL")). to("cache://TestCache1"); }