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

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

public class XUnitReportProcessingService
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
XUnitReportProcessingService()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XUnitReportProcessingService

public XUnitReportProcessingService()
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


Copyright © 2010. All Rights Reserved.