com.thalesgroup.hudson.plugins.xunit.service
Class XUnitValidationService

java.lang.Object
  extended by com.thalesgroup.hudson.plugins.xunit.service.XUnitService
      extended by 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

Constructor Summary
XUnitValidationService()
           
 
Method Summary
 boolean checkFileIsNotEmpty(java.io.File inputFile)
          Checks if the current input file is not empty
 boolean validateInputFile(XUnitToolInfo xUnitToolInfo, java.io.File inputFile)
          Validates an input file
 boolean validateOutputFile(XUnitToolInfo xUnitToolInfo, java.io.File inputFile, java.io.File junitTargetFile)
          Validates the converted file against a JUnit format
 
Methods inherited from class com.thalesgroup.hudson.plugins.xunit.service.XUnitService
errorSystemLogger, infoSystemLogger, warningSystemLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XUnitValidationService

public XUnitValidationService()
Method Detail

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 wrapper
inputFile - 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 object
inputFile - the input metric from the conversion
junitTargetFile - 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.