This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 104cf84ac3f1b037684598d8ce410fb58e80d8da Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Thu Mar 10 15:42:09 2022 +0100 CAMEL-17763: cleaned up unused exceptions in camel-platform-http-vertx --- .../http/vertx/VertxPlatformHttpEngineTest.java | 24 +++++++++++----------- ...rtxPlatformHttpEngineWithTypeConverterTest.java | 9 ++++---- .../http/vertx/VertxPlatformHttpJacksonTest.java | 2 +- 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngineTest.java b/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngineTest.java index 8354932..fbb5472 100644 --- a/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngineTest.java +++ b/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngineTest.java @@ -120,7 +120,7 @@ public class VertxPlatformHttpEngineTest { try { context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("platform-http:/get") .routeId("get") .setBody().constant("get"); @@ -171,7 +171,7 @@ public class VertxPlatformHttpEngineTest { context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("platform-http:/get") .routeId("get") .process(e -> Thread.sleep(TimeUnit.SECONDS.toMillis(3))) @@ -200,7 +200,7 @@ public class VertxPlatformHttpEngineTest { try { context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("platform-http:/get") .routeId("get") .process(exchange -> { @@ -231,7 +231,7 @@ public class VertxPlatformHttpEngineTest { context.getRegistry().bind("clientSSLContextParameters", clientSSLParameters); context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("platform-http:/") .transform().body(String.class, b -> b.toUpperCase()); } @@ -260,7 +260,7 @@ public class VertxPlatformHttpEngineTest { context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("platform-http:/") .transform().body(String.class, b -> b.toUpperCase()); } @@ -289,7 +289,7 @@ public class VertxPlatformHttpEngineTest { try { context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("platform-http:/") .transform().constant("cors"); } @@ -324,7 +324,7 @@ public class VertxPlatformHttpEngineTest { final String greeting = "Hello Camel"; context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("platform-http:/greeting/{name}?matchOnUriPrefix=true") .transform().simple("Hello ${header.name}"); } @@ -372,7 +372,7 @@ public class VertxPlatformHttpEngineTest { context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("platform-http:/upload") .process(exchange -> { AttachmentMessage message = exchange.getMessage(AttachmentMessage.class); @@ -403,7 +403,7 @@ public class VertxPlatformHttpEngineTest { try { context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("platform-http:/form/post") .convertBodyTo(String.class); } @@ -431,7 +431,7 @@ public class VertxPlatformHttpEngineTest { try { context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("platform-http:/text/post") .log("POST:/test/post has body ${body}"); } @@ -460,7 +460,7 @@ public class VertxPlatformHttpEngineTest { try { context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { restConfiguration().component("platform-http"); rest("/rest") @@ -511,7 +511,7 @@ public class VertxPlatformHttpEngineTest { CamelContext context = createCamelContext(); context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("platform-http:/secure") .process(exchange -> { Message message = exchange.getMessage(); diff --git a/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngineWithTypeConverterTest.java b/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngineWithTypeConverterTest.java index f38d3bb..07dfec1 100644 --- a/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngineWithTypeConverterTest.java +++ b/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngineWithTypeConverterTest.java @@ -25,7 +25,6 @@ import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.Exchange; -import org.apache.camel.NoTypeConversionAvailableException; import org.apache.camel.TypeConversionException; import org.apache.camel.TypeConverter; import org.apache.camel.builder.RouteBuilder; @@ -46,7 +45,7 @@ public class VertxPlatformHttpEngineWithTypeConverterTest { try { context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("platform-http:/bytebuffer") .routeId("bytebuffer") .setBody().constant(Collections.singletonMap("bb", "my-test")); @@ -76,7 +75,7 @@ public class VertxPlatformHttpEngineWithTypeConverterTest { try { context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("platform-http:/inputstream") .routeId("inputstream") .setBody().constant(Collections.singletonMap("is", "my-test")); @@ -135,13 +134,13 @@ public class VertxPlatformHttpEngineWithTypeConverterTest { @Override public <T> T mandatoryConvertTo(Class<T> type, Object value) - throws TypeConversionException, NoTypeConversionAvailableException { + throws TypeConversionException { return null; } @Override public <T> T mandatoryConvertTo(Class<T> type, Exchange exchange, Object value) - throws TypeConversionException, NoTypeConversionAvailableException { + throws TypeConversionException { return null; } diff --git a/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpJacksonTest.java b/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpJacksonTest.java index 2213104..c2ab4df 100644 --- a/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpJacksonTest.java +++ b/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpJacksonTest.java @@ -36,7 +36,7 @@ public class VertxPlatformHttpJacksonTest { context.addRoutes(new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("platform-http:/hello") .setBody().constant("{\"hello\": \"world\"}") .unmarshal().json();
