final class MaterialRepositoryImpl extends java.lang.Object
| Type | Name and description |
|---|---|
static org.slf4j.Logger |
logger_ |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
addTSuiteResult(TSuiteResult tSuiteResult)implementing TSuiteResultTree |
|
int |
clear(TSuiteResultId tSuiteResultId, boolean scan = true)delete Material files and sub directories located in the tSuiteName+tSuiteTimestamp dir. |
|
int |
clear(java.util.List<TSuiteResultId> tSuiteResultIdList) |
|
int |
clear(TSuiteName tSuiteName)delete Material files and sub directories located in the tSuiteName+tSuiteTimestamp dir. |
|
int |
clearRest(TSuiteResultId exceptThis, boolean scan = true) |
|
MaterialPairs |
createMaterialPairsForChronosMode(TSuiteName tSuiteName, TExecutionProfile tExecutionProfile)Scans the Materials directory to look up pairs of Material objects to compare for the Chronos mode. |
|
MaterialPairs |
createMaterialPairsForTwinsMode(TSuiteName tSuiteName)Scans the Materials directory to look up pairs of Material objects to compare for the Twins mode. |
|
void |
deleteBaseDirContents()@throws IOException |
|
TSuiteResult |
ensureTSuiteResultPresent(java.lang.String testSuiteName, java.lang.String executionProfile, java.lang.String testSuiteTimestamp) |
|
TSuiteResult |
ensureTSuiteResultPresent(TSuiteResultId tSuiteResultId) |
|
TSuiteResult |
ensureTSuiteResultPresent(TSuiteName tSuiteName, TExecutionProfile tExecutionProfile, TSuiteTimestamp tSuiteTimestamp) |
|
MaterialMetadataBundle |
findMaterialMetadataBundleOfCurrentTSuite() |
|
java.nio.file.Path |
getBaseDir() |
|
java.lang.String |
getCurrentExecutionProfile() |
|
TSuiteResult |
getCurrentTSuiteResult() |
|
java.nio.file.Path |
getCurrentTestSuiteDirectory() |
|
java.lang.String |
getCurrentTestSuiteId() |
|
java.lang.String |
getCurrentTestSuiteTimestamp() |
|
RepositoryRoot |
getRepositoryRoot() |
|
java.util.Set<java.nio.file.Path> |
getSetOfMaterialPathRelativeToTSuiteTimestamp(TSuiteName tSuiteName, TExecutionProfile tExecutionProfile) |
|
long |
getSize() |
|
TCaseResult |
getTCaseResult(java.lang.String testCaseId) |
|
TCaseResult |
getTCaseResult(TCaseName tCaseName) |
|
TCaseResult |
getTCaseResult(TSuiteName tSuiteName, TExecutionProfile tExecutionProfile, TSuiteTimestamp tSuiteTimestamp, TCaseName tCaseName)
|
|
java.util.List<TSuiteName> |
getTSuiteNameList() |
|
TSuiteResult |
getTSuiteResult(TSuiteName tSuiteName, TExecutionProfile tExecutionProfile, TSuiteTimestamp tSuiteTimestamp)implementing TSuiteResultTree |
|
TSuiteResult |
getTSuiteResult(TSuiteResultId tSuiteResultId)implementing TSuiteResultTree |
|
java.util.List<TSuiteResultId> |
getTSuiteResultIdList(TSuiteName tSuiteName, TExecutionProfile tExecutionProfile)implementing TSuiteResultTree |
|
java.util.List<TSuiteResultId> |
getTSuiteResultIdList()implementing TSuiteResultTree |
|
java.util.List<TSuiteResult> |
getTSuiteResultList()implementing TSuiteResultTree |
|
java.util.List<TSuiteResult> |
getTSuiteResultList(TSuiteName tSuiteName)implementing TSuiteResultTree not used in fact |
|
java.util.List<TSuiteResult> |
getTSuiteResultList(TSuiteName tSuiteName, TExecutionProfile tExecutionProfile)implementing TSuiteResultTree not used in fact |
|
java.util.List<TSuiteResult> |
getTSuiteResultList(java.util.List<TSuiteResultId> tSuiteResultIdList)implementing TSuiteResultTree |
|
java.nio.file.Path |
getTestCaseDirectory(java.lang.String testCaseId) |
|
boolean |
hasMaterialMetadataBundleOfCurrentTSuite() |
|
boolean |
hasTSuiteResult(TSuiteResult given)implementing TSuiteResultTree |
|
boolean |
isAlreadyMarked() |
|
java.nio.file.Path |
locateMaterialMetadataBundle(TSuiteResultId tSuiteResultId)@return Path of material-metadata-bundl.json file under the directory of the TSuiteResult |
|
java.nio.file.Path |
locateMaterialMetadataBundle(TSuiteResult tSuiteResult) |
|
java.nio.file.Path |
makeIndex()Given the path of Materialsdirectory = the base directory of the MaterialsRepository class instance, create <Materials directory>/index.htmlfile based on the current content of the Materials directory while naively assuming the <Materials directory>/.. |
|
void |
markAsCurrent(java.lang.String testSuiteId, java.lang.String executionProfile, java.lang.String testSuiteTimestamp) |
|
void |
markAsCurrent(TSuiteName tSuiteName, TExecutionProfile tExecutionProfile, TSuiteTimestamp tSuiteTimestamp) |
|
void |
markAsCurrent(TSuiteResultId tSuiteResultId) |
|
static MaterialRepositoryImpl |
newInstance(java.nio.file.Path baseDir) |
|
protected static java.util.Map<java.lang.String, java.lang.String> |
parseQuery(java.lang.String query)given 'corp=abcd&foo=bar' as queryString, return ['corp':'abcd','foo':'bar'] |
|
boolean |
printVisitedURLsAsMarkdown(java.io.Writer writer) |
|
boolean |
printVisitedURLsAsTSV(java.io.Writer writer) |
|
protected java.lang.String |
resolveFileNameByURLPathComponents(java.net.URL url, int startingDepth = 0, java.lang.String defaultName, FileType fileType = FileType.PNG)@param url |
|
java.nio.file.Path |
resolveMaterialPath(java.lang.String testCaseId, java.lang.String fileName, MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveMaterialPath(TCaseName tCaseName, java.lang.String fileName, MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveMaterialPath(java.lang.String testCaseId, java.lang.String subPath, java.lang.String fileName, MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveMaterialPath(TCaseName tCaseName, java.lang.String subPath, java.lang.String fileName, MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveMaterialPathByURLPathComponents(java.lang.String testCaseId, java.net.URL url, int startingDepth = 0, java.lang.String defaultName = 'default', FileType fileType = FileType.PNG, MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveMaterialPathByURLPathComponents(java.lang.String testCaseId, java.lang.String subPath, java.net.URL url, int startingDepth = 0, java.lang.String defaultName = 'default', FileType fileType = FileType.PNG, MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveMaterialPathByURLPathComponents(TCaseName tCaseName, java.net.URL url, int startingDepth = 0, java.lang.String defaultName = 'default', FileType fileType = FileType.PNG, MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveMaterialPathByURLPathComponents(TCaseName tCaseName, java.lang.String subPath, java.net.URL url, int startingDepth = 0, java.lang.String defaultName = 'default', FileType fileType = FileType.PNG, MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveScreenshotPath(java.lang.String testCaseId, java.net.URL url, MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveScreenshotPath(TCaseName tCaseName, java.net.URL url, MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveScreenshotPath(java.lang.String testCaseId, java.lang.String subPath, java.net.URL url, MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveScreenshotPath(TCaseName tCaseName, java.lang.String subPath, java.net.URL url, MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveScreenshotPathByURLPathComponents(java.lang.String testCaseId, java.net.URL url, int startingDepth = 0, java.lang.String defaultName = 'default', MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveScreenshotPathByURLPathComponents(TCaseName tCaseName, java.net.URL url, int startingDepth = 0, java.lang.String defaultName = 'default', MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveScreenshotPathByURLPathComponents(java.lang.String testCaseId, java.lang.String subPath, java.net.URL url, int startingDepth = 0, java.lang.String defaultName = 'default', MaterialDescription description = MaterialDescription.EMPTY) |
|
java.nio.file.Path |
resolveScreenshotPathByURLPathComponents(TCaseName tCaseName, java.lang.String subPath, java.net.URL url, int startingDepth = 0, java.lang.String defaultName = 'default', MaterialDescription description = MaterialDescription.EMPTY) |
|
void |
scan() |
|
void |
setVisualTestingLogger(VisualTestingLogger vtLogger) |
|
java.lang.String |
toJsonText() |
|
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
implementing TSuiteResultTree
delete Material files and sub directories located in the tSuiteName+tSuiteTimestamp dir. The tSuiteName directory is removed. All tSuiteTimestamp directories under the tSuiteName are removed of cource.
delete Material files and sub directories located in the tSuiteName+tSuiteTimestamp dir. The tSuiteName directory is removed. All tSuiteTimestamp directories under the tSuiteName are removed of cource.
Scans the Materials directory to look up pairs of Material objects to compare for the Chronos mode.
Scans the Materials directory to look up pairs of Material objects to compare for the Twins mode.
implementing TSuiteResultTree
implementing TSuiteResultTree
implementing TSuiteResultTree
implementing TSuiteResultTree
implementing TSuiteResultTree
implementing TSuiteResultTree not used in fact
implementing TSuiteResultTree not used in fact
implementing TSuiteResultTree
implementing TSuiteResultTree
Given the path of
Materialsdirectory = the base directory of the MaterialsRepository class instance, create
<Materials directory>/index.htmlfile based on the current content of the Materials directory while naively assuming the
<Materials directory>/../Reportsis also available.
given 'corp=abcd&foo=bar' as queryString, return ['corp':'abcd','foo':'bar']