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

java.lang.Object
  extended by com.thalesgroup.hudson.plugins.xunit.service.XUnitService
      extended by com.thalesgroup.hudson.plugins.xunit.service.XUnitReportProcessorService
All Implemented Interfaces:
java.io.Serializable

public class XUnitReportProcessorService
extends XUnitService
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
XUnitReportProcessorService()
           
 
Method Summary
 boolean checkIfFindsFilesNewFiles(XUnitToolInfo xUnitToolInfo, java.util.List<java.lang.String> files, java.io.File workspace)
          Checks if all the finds files are new file
 java.util.List<java.lang.String> findReports(XUnitToolInfo xUnitToolInfo, java.io.File parentPath, java.lang.String pattern)
          Gets all reports from the given parent path and the pattern.
 java.io.File getCurrentReport(java.io.File root, java.lang.String name)
          Gets a file from a root file and a name
 boolean isEmptyPattern(java.lang.String pattern)
          Tests if the pattern is empty.
 boolean isStopProcessingIfError(XUnitToolInfo xUnitToolInfo)
          Check if we stop the processing for an error
 
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

XUnitReportProcessorService

public XUnitReportProcessorService()
Method Detail

isEmptyPattern

public boolean isEmptyPattern(java.lang.String pattern)
Tests if the pattern is empty.

Parameters:
pattern - the given pattern of the current test tool
Returns:
true if empty or blank, false otherwise

findReports

public java.util.List<java.lang.String> findReports(XUnitToolInfo xUnitToolInfo,
                                                    java.io.File parentPath,
                                                    java.lang.String pattern)
Gets all reports from the given parent path and the pattern.

Parameters:
xUnitToolInfo - the xunit tool wrapper
parentPath - parent
pattern - pattern to search files
Returns:
an array of strings

checkIfFindsFilesNewFiles

public boolean checkIfFindsFilesNewFiles(XUnitToolInfo xUnitToolInfo,
                                         java.util.List<java.lang.String> files,
                                         java.io.File workspace)
Checks if all the finds files are new file

Parameters:
xUnitToolInfo - the wrapped object
files - the file list
workspace - the root location of the file list
Returns:
true if all files are new, false otherwise

getCurrentReport

public java.io.File getCurrentReport(java.io.File root,
                                     java.lang.String name)
Gets a file from a root file and a name

Parameters:
root - the root path
name - the filename
Returns:
the current file

isStopProcessingIfError

public boolean isStopProcessingIfError(XUnitToolInfo xUnitToolInfo)
Check if we stop the processing for an error

Parameters:
xUnitToolInfo - the wrapped object
Returns:
true if the xUnit must stop at the first error


Copyright © 2004-2012. All Rights Reserved.