curcuru 00/12/12 13:29:22
Modified: test/java/src/org/apache/qetest/trax/dom
DOMSourceAPITest.java
Log:
Update with bug/SPR id's for check*() methods
Revision Changes Path
1.4 +9 -5
xml-xalan/test/java/src/org/apache/qetest/trax/dom/DOMSourceAPITest.java
Index: DOMSourceAPITest.java
===================================================================
RCS file:
/home/cvs/xml-xalan/test/java/src/org/apache/qetest/trax/dom/DOMSourceAPITest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- DOMSourceAPITest.java 2000/11/29 15:21:47 1.3
+++ DOMSourceAPITest.java 2000/12/12 21:29:22 1.4
@@ -88,7 +88,7 @@
/**
* API Coverage test for the DOMSource class of TRAX.
* @author [EMAIL PROTECTED]
- * @version $Id: DOMSourceAPITest.java,v 1.3 2000/11/29 15:21:47 curcuru Exp
$
+ * @version $Id: DOMSourceAPITest.java,v 1.4 2000/12/12 21:29:22 curcuru Exp
$
*/
public class DOMSourceAPITest extends XSLProcessorTestBase
{
@@ -267,12 +267,16 @@
DOMSource blankXSLDOM = new DOMSource();
reporter.logTraceMsg("About to newTemplates(blankXSLDOM)");
Templates blankTemplates = factory.newTemplates(blankXSLDOM); //
SPR SCUU4R5JYZ throws npe; 0b29CVS now returns null
- reporter.check((blankTemplates != null), true,
"factory.newTemplates(blankXSLDOM) is non-null");
+ if (blankTemplates != null) // Use if so we can pass id to
checkPass/Fail calls
+ reporter.checkPass("factory.newTemplates(blankXSLDOM) is
non-null", "SCUU4R5JYZ");
+ else
+ reporter.checkFail("factory.newTemplates(blankXSLDOM) is
non-null", "SCUU4R5JYZ");
+
reporter.checkObject(blankXSLDOM.getNode(), null, "blankXSLDOM
is still empty");
}
catch (Throwable t)
{
- reporter.checkFail("Problem with blankXSLDOM(1)");
+ reporter.checkFail("Problem with blankXSLDOM(1)", "SCUU4R5JYZ");
reporter.logThrowable(reporter.ERRORMSG, t, "Problem with
blankXSLDOM(1)");
}
try
@@ -286,7 +290,7 @@
}
catch (Throwable t)
{
- reporter.checkFail("Problem with blankXSLDOM(2)");
+ reporter.checkFail("Problem with blankXSLDOM(2)", "SCUU4R5JYZ");
reporter.logThrowable(reporter.ERRORMSG, t, "Problem with
blankXSLDOM(2)");
}
@@ -323,7 +327,7 @@
}
catch (Throwable t)
{
- reporter.checkFail("Problem with transform(doms 1)");
+ reporter.checkFail("Problem with transform(doms 1)",
"SCUU4R5KLL");
reporter.logThrowable(reporter.ERRORMSG, t, "Problem with
transform(doms 1)");
}
try