You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/01/24 07:35:54 UTC

[5/6] git commit: CAMEL-7130 fixed the NPE issue of the unit test

CAMEL-7130 fixed the NPE issue of the unit test


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/1652b1c1
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/1652b1c1
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/1652b1c1

Branch: refs/heads/camel-2.12.x
Commit: 1652b1c1563978b76cfc81d2b443a9df1e423f83
Parents: 5118421
Author: Willem Jiang <wi...@gmail.com>
Authored: Fri Jan 24 14:28:56 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Fri Jan 24 14:32:08 2014 +0800

----------------------------------------------------------------------
 .../org/apache/camel/builder/xml/XsltTestErrorListenerTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/1652b1c1/camel-core/src/test/java/org/apache/camel/builder/xml/XsltTestErrorListenerTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/builder/xml/XsltTestErrorListenerTest.java b/camel-core/src/test/java/org/apache/camel/builder/xml/XsltTestErrorListenerTest.java
index 1951310..dbcce70 100644
--- a/camel-core/src/test/java/org/apache/camel/builder/xml/XsltTestErrorListenerTest.java
+++ b/camel-core/src/test/java/org/apache/camel/builder/xml/XsltTestErrorListenerTest.java
@@ -35,7 +35,7 @@ public class XsltTestErrorListenerTest extends TestCase {
 
     public void testErrorListener() throws Exception {
         // Xalan transformer cannot work as expected, so we just skip the test
-        if (xsltBuilder.isXalanTransformer(xsltBuilder.getTemplate().newTransformer())) {
+        if (xsltBuilder.isXalanTransformer(xsltBuilder.getConverter().getTransformerFactory().newTransformer())) {
             return;
         }
         errorListener.error(EasyMock.<TransformerException>anyObject());