You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/04/12 17:47:18 UTC
[camel] 04/09: CAMEL-17763: cleaned up unused exceptions in camel-json-patch
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 a9ca9fd2d04189b7e6f5580e0e4ba7029d193299
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Apr 12 16:18:43 2022 +0200
CAMEL-17763: cleaned up unused exceptions in camel-json-patch
---
.../org/apache/camel/component/jsonpatch/JsonPatchComponentTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-json-patch/src/test/java/org/apache/camel/component/jsonpatch/JsonPatchComponentTest.java b/components/camel-json-patch/src/test/java/org/apache/camel/component/jsonpatch/JsonPatchComponentTest.java
index 7999bc57cc4..c6370efb2ee 100644
--- a/components/camel-json-patch/src/test/java/org/apache/camel/component/jsonpatch/JsonPatchComponentTest.java
+++ b/components/camel-json-patch/src/test/java/org/apache/camel/component/jsonpatch/JsonPatchComponentTest.java
@@ -26,7 +26,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
public class JsonPatchComponentTest extends CamelTestSupport {
@Test
- public void testCamelJsonPatch() throws Exception {
+ public void testCamelJsonPatch() {
MockEndpoint mock = getMockEndpoint("mock:result");
sendBody("direct:foo", "{ \"a\": \"b\" }");
assertEquals(1, mock.getReceivedExchanges().size());
@@ -34,7 +34,7 @@ public class JsonPatchComponentTest extends CamelTestSupport {
}
@Test
- public void testSendToDeadLetterChannelIfPatchError() throws Exception {
+ public void testSendToDeadLetterChannelIfPatchError() {
MockEndpoint mock = getMockEndpoint("mock:errors");
String source = "{ \"a\": \"b\" }";
sendBody("direct:patch_error", source);