camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1151223 - in /camel/trunk: camel-core/src/main/java/org/apache/camel/component/properties/ camel-core/src/main/java/org/apache/camel/management/ camel-core/src/test/java/org/apache/camel/component/properties/ camel-core/src/test/java/org/a...
Date Tue, 26 Jul 2011 20:11:48 GMT
Author: dkulp
Date: Tue Jul 26 20:11:46 2011
New Revision: 1151223

URL: http://svn.apache.org/viewvc?rev=1151223&view=rev
Log:
Fix a bunch of warnings in eclipse

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesComponent.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/management/DefaultManagementObjectStrategy.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/component/properties/PropertiesComponentEIPRoutingSlipTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/issues/TryCatchWithSplitNotHandledIssueTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/model/XmlParseTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RoutingSlipInOutAndInOnlyTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/SetExchangePatternTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ToEndpointPropertyTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/TryProcessorHandledTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionUseOriginalMessageTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipDataModificationTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipIgnoreInvalidEndpointsTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipWithErrorHandlerTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipWithExceptionTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/view/DotViewTest.java
    camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
    camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerTwoParametersWithSameKeyTest.java
    camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySimulateInOnlyTest.java
    camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/jettyproducer/HttpJettyProducerTwoParametersWithSameKeyTest.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesComponent.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesComponent.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesComponent.java
(original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/properties/PropertiesComponent.java
Tue Jul 26 20:11:46 2011
@@ -212,10 +212,6 @@ public class PropertiesComponent extends
             this.locations = locations;
         }
 
-        public String[] getLocations() {
-            return locations;
-        }
-
         @Override
         public boolean equals(Object o) {
             if (this == o) {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/management/DefaultManagementObjectStrategy.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/management/DefaultManagementObjectStrategy.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/management/DefaultManagementObjectStrategy.java
(original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/management/DefaultManagementObjectStrategy.java
Tue Jul 26 20:11:46 2011
@@ -56,7 +56,6 @@ import org.apache.camel.processor.SendPr
 import org.apache.camel.processor.Throttler;
 import org.apache.camel.spi.BrowsableEndpoint;
 import org.apache.camel.spi.EventNotifier;
-import org.apache.camel.spi.ManagementAware;
 import org.apache.camel.spi.ManagementObjectStrategy;
 import org.apache.camel.spi.RouteContext;
 
@@ -71,9 +70,10 @@ public class DefaultManagementObjectStra
         return mc;
     }
 
+    @SuppressWarnings({"deprecation", "unchecked"})
     public Object getManagedObjectForComponent(CamelContext context, Component component,
String name) {
-        if (component instanceof ManagementAware) {
-            return ((ManagementAware) component).getManagedObject(component);
+        if (component instanceof org.apache.camel.spi.ManagementAware) {
+            return ((org.apache.camel.spi.ManagementAware<Component>) component).getManagedObject(component);
         } else {
             ManagedComponent mc = new ManagedComponent(name, component);
             mc.init(context.getManagementStrategy());
@@ -81,14 +81,15 @@ public class DefaultManagementObjectStra
         }
     }
 
+    @SuppressWarnings({"deprecation", "unchecked"})
     public Object getManagedObjectForEndpoint(CamelContext context, Endpoint endpoint) {
         // we only want to manage singleton endpoints
         if (!endpoint.isSingleton()) {
             return null;
         }
 
-        if (endpoint instanceof ManagementAware) {
-            return ((ManagementAware) endpoint).getManagedObject(endpoint);
+        if (endpoint instanceof org.apache.camel.spi.ManagementAware) {
+            return ((org.apache.camel.spi.ManagementAware<Endpoint>) endpoint).getManagedObject(endpoint);
         } else if (endpoint instanceof BrowsableEndpoint) {
             ManagedBrowsableEndpoint me = new ManagedBrowsableEndpoint((BrowsableEndpoint)
endpoint);
             me.init(context.getManagementStrategy());
@@ -154,6 +155,7 @@ public class DefaultManagementObjectStra
         return mc;
     }
 
+    @SuppressWarnings({"deprecation", "unchecked"})
     public Object getManagedObjectForProcessor(CamelContext context, Processor processor,
                                                ProcessorDefinition definition, Route route)
{
         ManagedProcessor answer = null;
@@ -176,8 +178,8 @@ public class DefaultManagementObjectStra
                 answer = new ManagedSendProcessor(context, (SendProcessor) target, definition);
             } else if (target instanceof BeanProcessor) {
                 answer = new ManagedBeanProcessor(context, (BeanProcessor) target, definition);
-            } else if (target instanceof ManagementAware) {
-                return ((ManagementAware) target).getManagedObject(processor);
+            } else if (target instanceof org.apache.camel.spi.ManagementAware) {
+                return ((org.apache.camel.spi.ManagementAware<Processor>) target).getManagedObject(processor);
             }
 
             if (answer != null) {

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/component/properties/PropertiesComponentEIPRoutingSlipTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/component/properties/PropertiesComponentEIPRoutingSlipTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/component/properties/PropertiesComponentEIPRoutingSlipTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/component/properties/PropertiesComponentEIPRoutingSlipTest.java
Tue Jul 26 20:11:46 2011
@@ -40,7 +40,7 @@ public class PropertiesComponentEIPRouti
             @Override
             public void configure() throws Exception {
                 from("direct:start")
-                    .routingSlip("cheese", "{{slipDelimiter}}");
+                    .routingSlip(header("cheese"), "{{slipDelimiter}}");
             }
         };
     }

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/issues/TryCatchWithSplitNotHandledIssueTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/issues/TryCatchWithSplitNotHandledIssueTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/issues/TryCatchWithSplitNotHandledIssueTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/issues/TryCatchWithSplitNotHandledIssueTest.java
Tue Jul 26 20:11:46 2011
@@ -54,6 +54,7 @@ public class TryCatchWithSplitNotHandled
 
     protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
+            @SuppressWarnings("deprecation")
             public void configure() {
                 from("direct:start")
                     .split(body().tokenize("@"))

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/model/XmlParseTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/model/XmlParseTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/model/XmlParseTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/model/XmlParseTest.java Tue Jul
26 20:11:46 2011
@@ -119,6 +119,7 @@ public class XmlParseTest extends XmlTes
         assertChildTo(route, "mock:b", 1);
     }
 
+    @SuppressWarnings("deprecation")
     public void testParseSetOutHeaderXml() throws Exception {
         RouteDefinition route = assertOneRoute("setOutHeader.xml");
         assertFrom(route, "seda:a");
@@ -128,6 +129,7 @@ public class XmlParseTest extends XmlTes
         assertChildTo(route, "mock:b", 1);
     }
 
+    @SuppressWarnings("deprecation")
     public void testParseSetOutHeaderToConstantXml() throws Exception {
         RouteDefinition route = assertOneRoute("setOutHeaderToConstant.xml");
         assertFrom(route, "seda:a");

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RoutingSlipInOutAndInOnlyTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RoutingSlipInOutAndInOnlyTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RoutingSlipInOutAndInOnlyTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RoutingSlipInOutAndInOnlyTest.java
Tue Jul 26 20:11:46 2011
@@ -49,7 +49,7 @@ public class RoutingSlipInOutAndInOnlyTe
             @Override
             public void configure() throws Exception {
                 from("direct:start")
-                    .routingSlip("slip")
+                    .routingSlip(header("slip"))
                     .to("mock:result");
 
                 from("direct:a")

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/SetExchangePatternTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/SetExchangePatternTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/SetExchangePatternTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/SetExchangePatternTest.java
Tue Jul 26 20:11:46 2011
@@ -137,8 +137,12 @@ public class SetExchangePatternTest exte
                 from("direct:testInOnly").inOnly("mock:result");
 
                 // Set the exchange pattern to InOut, then send it from direct:inOnly to
mock:result endpoint
-                from("direct:testSetToInOnlyThenTo").inOnly().to("mock:result");
-                from("direct:testSetToInOutThenTo").inOut().to("mock:result");
+                from("direct:testSetToInOnlyThenTo")
+                    .setExchangePattern(ExchangePattern.InOnly)
+                    .to("mock:result");
+                from("direct:testSetToInOutThenTo")
+                    .setExchangePattern(ExchangePattern.InOut)
+                    .to("mock:result");
 
                 // Or we can pass the pattern as a parameter to the to() method
                 from("direct:testToWithInOnlyParam").to(ExchangePattern.InOnly, "mock:result");

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ToEndpointPropertyTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ToEndpointPropertyTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ToEndpointPropertyTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ToEndpointPropertyTest.java
Tue Jul 26 20:11:46 2011
@@ -93,7 +93,7 @@ public class ToEndpointPropertyTest exte
         context.addRoutes(new RouteBuilder() {
             @Override
             public void configure() throws Exception {
-                from("direct:start").routingSlip("foo");
+                from("direct:start").routingSlip(header("foo"));
             }
         });
         context.start();

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/TryProcessorHandledTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/TryProcessorHandledTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/TryProcessorHandledTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/TryProcessorHandledTest.java
Tue Jul 26 20:11:46 2011
@@ -64,6 +64,7 @@ public class TryProcessorHandledTest ext
 
     protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
+            @SuppressWarnings("deprecation")
             public void configure() {
                 // START SNIPPET: e1
                 from("direct:start")

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionUseOriginalMessageTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionUseOriginalMessageTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionUseOriginalMessageTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionUseOriginalMessageTest.java
Tue Jul 26 20:11:46 2011
@@ -18,6 +18,7 @@ package org.apache.camel.processor.onexc
 
 import org.apache.camel.ContextTestSupport;
 import org.apache.camel.Exchange;
+import org.apache.camel.ExchangePattern;
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.converter.stream.InputStreamCache;
@@ -68,7 +69,7 @@ public class OnExceptionUseOriginalMessa
                 
                 onException(IllegalArgumentException.class).useOriginalMessage().handled(true).to("seda:test");
 
-                from("direct:a").inOut()
+                from("direct:a").setExchangePattern(ExchangePattern.InOut)
                     .process(new MyProcessor());
                     
                 from("seda:test")

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipDataModificationTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipDataModificationTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipDataModificationTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipDataModificationTest.java
Tue Jul 26 20:11:46 2011
@@ -67,7 +67,7 @@ public class RoutingSlipDataModification
 
             public void configure() {
                 // START SNIPPET: example
-                from("direct:a").routingSlip(ROUTING_SLIP_HEADER).to("mock:y");
+                from("direct:a").routingSlip(header(ROUTING_SLIP_HEADER)).to("mock:y");
                 // END SNIPPET: example
             }
         };

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipIgnoreInvalidEndpointsTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipIgnoreInvalidEndpointsTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipIgnoreInvalidEndpointsTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipIgnoreInvalidEndpointsTest.java
Tue Jul 26 20:11:46 2011
@@ -51,9 +51,10 @@ public class RoutingSlipIgnoreInvalidEnd
     protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {                
-                from("direct:a").routingSlip("myHeader", true).to("mock:end");
+                from("direct:a").routingSlip(header("myHeader"))
+                    .ignoreInvalidEndpoints().to("mock:end");
                 
-                from("direct:b").routingSlip("myHeader").to("mock:end");
+                from("direct:b").routingSlip(header("myHeader")).to("mock:end");
                 
                 from("direct:start").transform(constant("Hello World"));
             }

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipTest.java
Tue Jul 26 20:11:46 2011
@@ -127,7 +127,7 @@ public class RoutingSlipTest extends Con
         return new RouteBuilder() {
             public void configure() {
                 // START SNIPPET: e1
-                from("direct:a").routingSlip("myHeader").to("mock:end");
+                from("direct:a").routingSlip(header("myHeader")).to("mock:end");
                 // END SNIPPET: e1
 
                 // START SNIPPET: e2
@@ -135,7 +135,7 @@ public class RoutingSlipTest extends Con
                 // END SNIPPET: e2
 
                 // START SNIPPET: e3
-                from("direct:c").routingSlip("aRoutingSlipHeader", "#");
+                from("direct:c").routingSlip(header("aRoutingSlipHeader"), "#");
                 // END SNIPPET: e3
                 
                 // START SNIPPET: e4

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipWithErrorHandlerTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipWithErrorHandlerTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipWithErrorHandlerTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipWithErrorHandlerTest.java
Tue Jul 26 20:11:46 2011
@@ -24,8 +24,7 @@ public class RoutingSlipWithErrorHandler
         return new RouteBuilder() {
             public void configure() {                
                 onException(Exception.class).handled(true).to("mock:exception");
-                
-                from("direct:start").routingSlip(ROUTING_SLIP_HEADER).to("mock:noexception");
+                from("direct:start").routingSlip(header(ROUTING_SLIP_HEADER)).to("mock:noexception");
             }
         };
     }

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipWithExceptionTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipWithExceptionTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipWithExceptionTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/routingslip/RoutingSlipWithExceptionTest.java
Tue Jul 26 20:11:46 2011
@@ -145,6 +145,7 @@ public class RoutingSlipWithExceptionTes
 
     protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
+            @SuppressWarnings("deprecation")
             public void configure() {
                 from("direct:start").
                         doTry().

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/view/DotViewTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/view/DotViewTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/view/DotViewTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/view/DotViewTest.java Tue Jul 26
20:11:46 2011
@@ -92,7 +92,7 @@ public class DotViewTest extends Context
 
     static class RoutingSlipRoute extends RouteBuilder {
         public void configure() throws Exception {
-            from("seda:foo").routingSlip("splipHeader");
+            from("seda:foo").routingSlip(header("splipHeader"));
         }
     }
 

Modified: camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
(original)
+++ camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
Tue Jul 26 20:11:46 2011
@@ -319,6 +319,7 @@ public class HttpProducer extends Defaul
      * @return the created method as either GET or POST
      * @throws CamelExchangeException is thrown if error creating RequestEntity
      */
+    @SuppressWarnings("deprecation")
     protected HttpMethod createMethod(Exchange exchange) throws CamelExchangeException {
 
         String url = HttpHelper.createURL(exchange, getEndpoint());

Modified: camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerTwoParametersWithSameKeyTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerTwoParametersWithSameKeyTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerTwoParametersWithSameKeyTest.java
(original)
+++ camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerTwoParametersWithSameKeyTest.java
Tue Jul 26 20:11:46 2011
@@ -89,7 +89,7 @@ public class HttpProducerTwoParametersWi
                         // response
                         exchange.getOut().setBody("OK");
                         // use multiple values for the foo header in the reply
-                        List list = new ArrayList();
+                        List<Integer> list = new ArrayList<Integer>();
                         list.add(123);
                         list.add(456);
                         exchange.getOut().setHeader("foo", list);

Modified: camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySimulateInOnlyTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySimulateInOnlyTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySimulateInOnlyTest.java
(original)
+++ camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySimulateInOnlyTest.java
Tue Jul 26 20:11:46 2011
@@ -17,6 +17,7 @@
 package org.apache.camel.component.jetty;
 
 import org.apache.camel.Exchange;
+import org.apache.camel.ExchangePattern;
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
@@ -84,7 +85,8 @@ public class JettySimulateInOnlyTest ext
                     // turn the route to in only as we do not want jetty to wait for the
response
                     // we can do this by changing the MEP and sending to a seda endpoint
to spin off
                     // a new thread continue doing the routing
-                    .inOnly().to("seda:continue")
+                    .setExchangePattern(ExchangePattern.InOnly)
+                    .to("seda:continue")
                     // and then construct a canned empty response
                     .transform(constant("OK"));
 

Modified: camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/jettyproducer/HttpJettyProducerTwoParametersWithSameKeyTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/jettyproducer/HttpJettyProducerTwoParametersWithSameKeyTest.java?rev=1151223&r1=1151222&r2=1151223&view=diff
==============================================================================
--- camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/jettyproducer/HttpJettyProducerTwoParametersWithSameKeyTest.java
(original)
+++ camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/jettyproducer/HttpJettyProducerTwoParametersWithSameKeyTest.java
Tue Jul 26 20:11:46 2011
@@ -105,7 +105,7 @@ public class HttpJettyProducerTwoParamet
                         // response
                         exchange.getOut().setBody("OK");
                         // use multiple values for the foo header in the reply
-                        List list = new ArrayList();
+                        List<Integer> list = new ArrayList<Integer>();
                         list.add(123);
                         list.add(456);
                         exchange.getOut().setHeader("foo", list);



Mime
View raw message