curcuru 01/02/15 12:26:17
Modified: test/java/src/org/apache/qetest/xalanj1
StylesheetReuseTest.java
Log:
Add try...catch in middle of testCase5 so it runs through
Revision Changes Path
1.5 +17 -4
xml-xalan/test/java/src/org/apache/qetest/xalanj1/StylesheetReuseTest.java
Index: StylesheetReuseTest.java
===================================================================
RCS file:
/home/cvs/xml-xalan/test/java/src/org/apache/qetest/xalanj1/StylesheetReuseTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- StylesheetReuseTest.java 2001/02/15 19:20:52 1.4
+++ StylesheetReuseTest.java 2001/02/15 20:26:09 1.5
@@ -87,7 +87,7 @@
/**
* Testing various cases of stylesheet re-use.
* @author [EMAIL PROTECTED]
- * @version $Id: StylesheetReuseTest.java,v 1.4 2001/02/15 19:20:52 curcuru
Exp $
+ * @version $Id: StylesheetReuseTest.java,v 1.5 2001/02/15 20:26:09 curcuru
Exp $
*/
public class StylesheetReuseTest extends XSLProcessorTestBase
{
@@ -601,7 +601,22 @@
)
reporter.logInfoMsg("processor.process(xml-pi, null, target)
transform failure reason:" + fileChecker.getExtendedInfo());
processor.reset();
-
+ }
+ catch (Throwable t)
+ {
+ reporter.checkErr("Testcase threw: " + t.toString());
+ reporter.logThrowable(Logger.ERRORMSG, t, "Testcase threw");
+ }
+ try
+ {
+ if ((liaison == null) || ("".equals(liaison)))
+ {
+ processor = (XSLTEngineImpl)
XSLTProcessorFactory.getProcessor();
+ }
+ else
+ {
+ processor = (XSLTEngineImpl)
XSLTProcessorFactory.getProcessorUsingLiaisonName(liaison);
+ }
// SPR reported: [EMAIL PROTECTED]
reporter.logStatusMsg("Use BufferedReaders in specific
processing call; reported by mailto:[EMAIL PROTECTED]");
// Note use plain local filepaths to create readers; also don't
set systemId
@@ -621,8 +636,6 @@
)
reporter.logInfoMsg("processor.process(xml-readers, null,
target) transform failure reason:" + fileChecker.getExtendedInfo());
processor.reset();
-
-
}
catch (Throwable t)
{