This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 66604faa0d293cbe1364dda9fb1af89ab6435754 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Mar 17 12:24:21 2020 +0100 Camel-AWS2-CW: Cleanup --- .../apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java | 2 +- .../test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java b/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java index 5f25dbf..01152e6 100644 --- a/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java +++ b/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java @@ -49,7 +49,7 @@ public class CwComponentRegistryClientTest extends CamelTestSupport { public void createEndpointWithMinimalS3ClientMisconfiguration() throws Exception { Cw2Component component = context.getComponent("aws2-cw", Cw2Component.class); assertThrows(IllegalArgumentException.class, () -> { - Cw2Endpoint endpoint = (Cw2Endpoint)component.createEndpoint("aws2-cw://camel.apache.org/test"); + component.createEndpoint("aws2-cw://camel.apache.org/test"); }); } } diff --git a/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java b/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java index e76680e..2d2bbd7 100644 --- a/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java +++ b/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java @@ -45,7 +45,7 @@ public class CwComponentTest extends CamelTestSupport { @Test public void sendMetricFromHeaderValues() throws Exception { mock.expectedMessageCount(1); - Exchange exchange = template.request("direct:start", new Processor() { + template.send("direct:start", new Processor() { public void process(Exchange exchange) throws Exception { exchange.getIn().setHeader(Cw2Constants.METRIC_NAMESPACE, "camel.apache.org/overriden"); exchange.getIn().setHeader(Cw2Constants.METRIC_NAME, "OverridenMetric");