This is an automated email from the ASF dual-hosted git repository.
lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 525300e Fix CS
525300e is described below
commit 525300e5ff4ff8bde7a2ce923450fc2924a5a16d
Author: Luca Burgazzoli <[email protected]>
AuthorDate: Mon Feb 15 11:02:23 2021 +0100
Fix CS
---
.../java/org/apache/camel/component/printer/PrinterPrintTest.java | 5 ++---
1 file changed, 2 insertions(+), 3 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 87c5afe..7611d87 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
@@ -57,6 +57,8 @@ import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
public class PrinterPrintTest extends CamelTestSupport {
+ Class<?> printServiceLookupServicesClass =
PrintServiceLookup.class.getDeclaredClasses()[0];
+ Object printServiceLookup;
@BeforeEach
public void setup() throws Exception {
@@ -400,9 +402,6 @@ public class PrinterPrintTest extends CamelTestSupport {
assertEquals("reverse-landscape", attribute.toString());
}
- Class<?> printServiceLookupServicesClass =
PrintServiceLookup.class.getDeclaredClasses()[0];
- Object printServiceLookup;
-
protected void setupJavaPrint() throws Exception {
// save the current print services
printServiceLookup =
sun.awt.AppContext.getAppContext().get(printServiceLookupServicesClass);