When failonwarn is set to true, the IBM JDK seems to ignore it. The com/ibm/xtq/xslt/jaxp/compiler/TransformerFactoryImpl seems to be the default transformer factory impl, and switching to com/sun/org/apache/xalan/internal/xsltc/trax/TransformerFactoryImpl does not seem to help because it is an empty class which implements the com.ibm.xtq.xslt.jaxp.compiler.TransformerFactoryImpl.
I've tried going through and making a number of changes to the .xslt used in this test that are supposed to produce a warning with the xslt compiler, but they seem to in all cases cause an xslt compiler error instead.
Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.091 sec <<< FAILURE! test_failonwarn_true_warn(org.switchyard.transform.xslt.internal.XsltTransformerTest) Time elapsed: 0.057 sec <<< FAILURE! java.lang.AssertionError: No SwitchYardException has been thrown at org.junit.Assert.fail(Assert.java:88) at org.switchyard.transform.xslt.internal.XsltTransformerTest.test_failonwarn_true_warn(XsltTransformerTest.java:155) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:619)
|