public class XUnitValidationService extends XUnitService implements Serializable
Constructor and Description |
---|
XUnitValidationService() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkFileIsNotEmpty(File inputFile)
Checks if the current input file is not empty
|
boolean |
validateInputFile(XUnitToolInfo xUnitToolInfo,
File inputFile)
Validates an input file
|
boolean |
validateOutputFile(XUnitToolInfo xUnitToolInfo,
File inputFile,
File junitTargetFile)
Validates the converted file against a JUnit format
|
errorSystemLogger, infoSystemLogger, warningSystemLogger
public boolean checkFileIsNotEmpty(File inputFile)
inputFile
- the input filepublic boolean validateInputFile(XUnitToolInfo xUnitToolInfo, File inputFile) throws XUnitException
xUnitToolInfo
- the xUnit tool info wrapperinputFile
- the current input fileXUnitException
- an XUnitException when there are validation exceptionspublic boolean validateOutputFile(XUnitToolInfo xUnitToolInfo, File inputFile, File junitTargetFile) throws XUnitException
xUnitToolInfo
- the xUnit info wrapper objectinputFile
- the input metric from the conversionjunitTargetFile
- the converted input fileXUnitException
- an XUnitException when there are validation exceptionsCopyright © 2004-2014. All Rights Reserved.