hudson.plugins.jsunit
Class JSUnitReportTransformer
java.lang.Object
hudson.plugins.jsunit.JSUnitReportTransformer
- All Implemented Interfaces:
- TestReportTransformer, java.io.Serializable
public class JSUnitReportTransformer
- extends java.lang.Object
- implements TestReportTransformer, java.io.Serializable
Transforms a JSUnit report into seperate JUnit reports. The JSUnit report can contain several test cases and the JUnit
report that is read by Hudson should only contain one. This class will split up one JSUnit report into several JUnit
files.
- See Also:
- Serialized Form
|
Method Summary |
void |
transform(java.io.InputStream jsUnitFileStream,
java.io.File junitOutputPath)
Transform the jsUnit file into several junit files in the output path |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUNIT_FILE_POSTFIX
public static final java.lang.String JUNIT_FILE_POSTFIX
- See Also:
- Constant Field Values
JUNIT_FILE_PREFIX
public static final java.lang.String JUNIT_FILE_PREFIX
- See Also:
- Constant Field Values
JSUNIT_TO_JUNIT_XSLFILE_STR
public static final java.lang.String JSUNIT_TO_JUNIT_XSLFILE_STR
- See Also:
- Constant Field Values
JSUnitReportTransformer
public JSUnitReportTransformer()
transform
public void transform(java.io.InputStream jsUnitFileStream,
java.io.File junitOutputPath)
throws java.io.IOException,
javax.xml.transform.TransformerException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Transform the jsUnit file into several junit files in the output path
- Specified by:
transform in interface TestReportTransformer
- Parameters:
jsUnitFileStream - the jsUnit file stream to transformjunitOutputPath - the output path to put all junit files
- Throws:
java.io.IOException - thrown if there was any problem with the transform.
javax.xml.transform.TransformerException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
Copyright © 2009. All Rights Reserved.