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 f7c1ee0883240706dc733a14b4226cdab2f13f62
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Tue Apr 12 18:16:54 2022 +0200

    CAMEL-17763: cleaned up unused exceptions in camel-printer
---
 .../org/apache/camel/component/printer/PrinterPrintTest.java   | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/components/camel-printer/src/test/java/org/apache/camel/component/printer/PrinterPrintTest.java
 
b/components/camel-printer/src/test/java/org/apache/camel/component/printer/PrinterPrintTest.java
index b4b28e18583..9a455c1c326 100644
--- 
a/components/camel-printer/src/test/java/org/apache/camel/component/printer/PrinterPrintTest.java
+++ 
b/components/camel-printer/src/test/java/org/apache/camel/component/printer/PrinterPrintTest.java
@@ -83,7 +83,7 @@ public class PrinterPrintTest extends CamelTestSupport {
         return Boolean.getBoolean("java.awt.headless");
     }
 
-    private void sendFile() throws Exception {
+    private void sendFile() {
         template.send("direct:start", new Processor() {
             public void process(Exchange exchange) throws Exception {
                 // Read from an input stream
@@ -104,7 +104,7 @@ public class PrinterPrintTest extends CamelTestSupport {
         });
     }
 
-    private void sendGIF() throws Exception {
+    private void sendGIF() {
         template.send("direct:start", new Processor() {
             public void process(Exchange exchange) throws Exception {
                 // Read from an input stream
@@ -125,7 +125,7 @@ public class PrinterPrintTest extends CamelTestSupport {
         });
     }
 
-    private void sendJPEG() throws Exception {
+    private void sendJPEG() {
         template.send("direct:start", new Processor() {
             public void process(Exchange exchange) throws Exception {
                 // Read from an input stream
@@ -359,7 +359,7 @@ public class PrinterPrintTest extends CamelTestSupport {
     }
 
     @Test
-    public void printToMiddleTray() throws Exception {
+    public void printToMiddleTray() {
         PrinterEndpoint endpoint = new PrinterEndpoint();
         PrinterConfiguration configuration = new PrinterConfiguration();
         configuration.setHostname("localhost");
@@ -383,7 +383,7 @@ public class PrinterPrintTest extends CamelTestSupport {
     }
 
     @Test
-    public void printsWithLandscapeOrientation() throws Exception {
+    public void printsWithLandscapeOrientation() {
         PrinterEndpoint endpoint = new PrinterEndpoint();
         PrinterConfiguration configuration = new PrinterConfiguration();
         configuration.setHostname("localhost");

Reply via email to