Class XUnitValidationService

java.lang.Object
org.jenkinsci.plugins.xunit.service.XUnitValidationService
All Implemented Interfaces:
Serializable

public class XUnitValidationService extends Object implements Serializable
See Also:
  • Constructor Details

    • XUnitValidationService

      @Inject public XUnitValidationService(XUnitLog xUnitLog)
  • Method Details

    • checkFileIsNotEmpty

      public boolean checkFileIsNotEmpty(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, File inputFile)
      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
    • validateOutputFile

      public boolean validateOutputFile(XUnitToolInfo xUnitToolInfo, File inputFile, File junitTargetFile)
      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