camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject git commit: CAMEL-7130 fixed the NPE issue of the unit test
Date Fri, 24 Jan 2014 06:29:10 GMT
Updated Branches:
  refs/heads/master 1389453ab -> a8c02f87f


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/a8c02f87
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a8c02f87
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a8c02f87

Branch: refs/heads/master
Commit: a8c02f87fef08c5592ec2e1fbde6ce7c6748709a
Parents: 1389453
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:28:56 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/a8c02f87/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