com.thalesgroup.hudson.plugins.xunit.service
Class XUnitValidationService
java.lang.Object
com.thalesgroup.hudson.plugins.xunit.service.XUnitService
com.thalesgroup.hudson.plugins.xunit.service.XUnitValidationService
- All Implemented Interfaces:
- java.io.Serializable
public class XUnitValidationService
- extends XUnitService
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XUnitValidationService
public XUnitValidationService()
checkFileIsNotEmpty
public boolean checkFileIsNotEmpty(java.io.File inputFile)
- Checks if the current input file is not empty
- Parameters:
inputFile
- the input file
- Returns:
- true if not empty, false otherwise
validateInputFile
public boolean validateInputFile(XUnitToolInfo xUnitToolInfo,
java.io.File inputFile)
throws XUnitException
- Validates an input file
- Parameters:
xUnitToolInfo
- the xUnit tool info wrapperinputFile
- the current input file
- Returns:
- true if the validation is success, false otherwise
- Throws:
XUnitException
- an XUnitException when there are validation exceptions
validateOutputFile
public boolean validateOutputFile(XUnitToolInfo xUnitToolInfo,
java.io.File inputFile,
java.io.File junitTargetFile)
throws XUnitException
- Validates the converted file against a JUnit format
- Parameters:
xUnitToolInfo
- the xUnit info wrapper objectinputFile
- the input metric from the conversionjunitTargetFile
- the converted input file
- Returns:
- true if the validation is success, false otherwise
- Throws:
XUnitException
- an XUnitException when there are validation exceptions
Copyright © 2004-2012. All Rights Reserved.