camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [6/6] git commit: CAMEL-7130 fixed the NPE issue of the unit test
Date Fri, 24 Jan 2014 06:35:55 GMT
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/3b95b6c6
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3b95b6c6
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3b95b6c6

Branch: refs/heads/camel-2.11.x
Commit: 3b95b6c6d68a928d4e84129db8a8bca97219e25d
Parents: ef10ef7
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Fri Jan 24 14:28:56 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Fri Jan 24 14:32:20 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/3b95b6c6/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());


Mime
View raw message