|
UTF-X, Unit Testing Framework - Xslt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object utfx.framework.TestFileSuiteAssembler
public class TestFileSuiteAssembler
Builds XSLTTestFileSuite from an XML test definition document. The tests created are compatible with the JUnit testing framework.
Copyright © 2004 - 2005 USQ and others.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
$Source: /cvs/utf-x/framework/src/java/utfx/framework/TestFileSuiteAssembler.java,v $
Field Summary | |
---|---|
private javax.xml.parsers.DocumentBuilder |
db
DOM Document builder |
private javax.xml.parsers.DocumentBuilderFactory |
dbf
DOM Document builder factory |
private java.lang.String |
filename
Filename of this test definition document (test file suite) |
private org.apache.log4j.Logger |
log
log4j logging facility |
private XSLTTestFileSuite |
suite
test file suite we are going to assemble |
private javax.xml.transform.TransformerFactory |
tf
XSLT transformer factory |
private javax.xml.xpath.XPath |
xpath
Xpath |
private javax.xml.xpath.XPathFactory |
xpf
XPath factory |
Constructor Summary | |
---|---|
TestFileSuiteAssembler(java.lang.String filename)
Construct a new TestFileSuiteAssembler. |
Method Summary | |
---|---|
void |
assemble()
Assemble a test file suite. |
private java.lang.String |
getStylesheetUnderTestURI(org.w3c.dom.Document testDoc)
Get the absolute URI of the stylesheet under test. |
XSLTTestFileSuite |
getTestSuite()
Gets the XSLTTestFileSuite constructed by this assembler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String filename
private XSLTTestFileSuite suite
private javax.xml.xpath.XPathFactory xpf
private javax.xml.xpath.XPath xpath
private javax.xml.transform.TransformerFactory tf
private javax.xml.parsers.DocumentBuilderFactory dbf
private javax.xml.parsers.DocumentBuilder db
private org.apache.log4j.Logger log
Constructor Detail |
---|
public TestFileSuiteAssembler(java.lang.String filename) throws javax.xml.parsers.ParserConfigurationException
filename
- the UTF-X test definition file to use for assembling the
test suite.
javax.xml.parsers.ParserConfigurationException
- if this constructor cannot create a
document builder or its factory..Method Detail |
---|
public void assemble() throws java.lang.Exception
java.lang.Exception
- if the XLSTTestFileSuite cannot be assembled.public XSLTTestFileSuite getTestSuite()
private java.lang.String getStylesheetUnderTestURI(org.w3c.dom.Document testDoc) throws java.net.MalformedURLException
testDoc
- the TDF file
java.net.MalformedURLException
|
UTF-X, Unit Testing Framework - Xslt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |