This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit aed369c752e43e0def0b809376d239425d8c7a33
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed May 27 10:07:09 2020 +0200

    CAMEL-14805: Component - Use doInit for wiring instead of doStart
---
 .../java/org/apache/camel/component/xslt/InvalidXsltFileTest.java     | 2 +-
 .../java/org/apache/camel/component/xslt/XsltFileNotFoundTest.java    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/core/camel-core/src/test/java/org/apache/camel/component/xslt/InvalidXsltFileTest.java
 
b/core/camel-core/src/test/java/org/apache/camel/component/xslt/InvalidXsltFileTest.java
index 41470ce..cda7a31 100644
--- 
a/core/camel-core/src/test/java/org/apache/camel/component/xslt/InvalidXsltFileTest.java
+++ 
b/core/camel-core/src/test/java/org/apache/camel/component/xslt/InvalidXsltFileTest.java
@@ -40,7 +40,7 @@ public class InvalidXsltFileTest extends TestSupport {
             fail("Should have thrown an exception due XSL compilation error");
         } catch (Exception e) {
             // expected
-            assertIsInstanceOf(TransformerConfigurationException.class, 
e.getCause().getCause());
+            assertIsInstanceOf(TransformerConfigurationException.class, 
e.getCause().getCause().getCause());
         }
     }
 
diff --git 
a/core/camel-core/src/test/java/org/apache/camel/component/xslt/XsltFileNotFoundTest.java
 
b/core/camel-core/src/test/java/org/apache/camel/component/xslt/XsltFileNotFoundTest.java
index cf8617b..67d6e3d 100644
--- 
a/core/camel-core/src/test/java/org/apache/camel/component/xslt/XsltFileNotFoundTest.java
+++ 
b/core/camel-core/src/test/java/org/apache/camel/component/xslt/XsltFileNotFoundTest.java
@@ -41,8 +41,8 @@ public class XsltFileNotFoundTest extends TestSupport {
 
             fail("Should have thrown an exception due XSLT file not found");
         } catch (Exception e) {
-            assertIsInstanceOf(TransformerException.class, 
e.getCause().getCause());
-            assertIsInstanceOf(FileNotFoundException.class, 
e.getCause().getCause().getCause());
+            assertIsInstanceOf(TransformerException.class, 
e.getCause().getCause().getCause());
+            assertIsInstanceOf(FileNotFoundException.class, 
e.getCause().getCause().getCause().getCause());
         }
     }
 

Reply via email to