|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.daisy.zedval.engine.ZedContext
Encapsulates run-time context information
This can be subclassed to provide more context information
Field Summary | |
static java.lang.String |
ENGINE_VERSION
|
Constructor Summary | |
ZedContext(java.lang.String appName,
java.lang.String appVersion)
|
Method Summary | |
java.lang.String |
getAppName()
Returns the application name |
java.lang.String |
getAppVersion()
Returns the application version number |
PackageFile |
getPackageFile()
|
ZedMap |
getProcessorMap()
Returns the processor map file used in this run |
ZedReporter |
getReporter()
Returns the ZedReporter instance for this run |
java.lang.String |
getSpecYear()
|
ZedMap |
getTestMap()
Returns the test map file used in this run |
java.util.LinkedHashMap |
getTestProcessors()
Gets the list of test processors to use in this run |
java.util.LinkedHashMap |
getTests()
Gets the list of tests to use in this run |
void |
loadPackageFile(java.lang.String fullPath)
Creates and initializes a PackageFile object for this run |
void |
loadProcessorMap(java.lang.String fullPath)
Creates and initializes a processor map MapFile object for this run |
void |
loadProcessorMap(java.net.URL url)
|
void |
loadReporter(java.lang.String className)
Creates a ZedReporter object for this run |
void |
loadTestMap(java.lang.String fullPath)
Creates and initializes a test map MapFile object for this run |
void |
loadTestMap(java.net.URL url)
Creates and initializes a test map MapFile object for this run |
java.util.LinkedHashMap |
loadTestProcessors()
Instantiates all applicable test processors based on list of tests and processor map Note: setTests() or loadTests() must be called before this method |
java.util.LinkedHashMap |
loadTests()
Instantiates all applicable tests based on contents of package file and test map |
void |
printTests()
Prints the entire list of tests to stdout |
void |
setPackageFile(PackageFile p)
Sets the package file for this run |
void |
setProcessorMap(ZedMap pm)
Sets the processor map file for this run |
void |
setReporter(ZedReporter r)
Sets the reporter for this run |
void |
setTestMap(ZedMap tm)
Sets the test map file for this run |
void |
setTestProcessors(java.util.LinkedHashMap tp)
Sets the list of test processors to use in this run |
void |
setTests(java.util.LinkedHashMap t)
Sets the list of tests to use in this run |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String ENGINE_VERSION
Constructor Detail |
public ZedContext(java.lang.String appName, java.lang.String appVersion)
appName
- The name of the application being runappVersion
- The version number of the application being runMethod Detail |
public void loadPackageFile(java.lang.String fullPath) throws ZedFileInitializationException
fullPath
- The full path (including name) of the package file to load
ZedFileInitializationException
public void setPackageFile(PackageFile p)
p
- The PackageFile object for this runpublic PackageFile getPackageFile()
public void loadTestMap(java.lang.String fullPath) throws ZedFileInitializationException
fullPath
- The full path (including name) of the test map file to load
ZedFileInitializationException
public void loadTestMap(java.net.URL url) throws ZedFileInitializationException
url
- URL of the test map file to load
ZedFileInitializationException
public void setTestMap(ZedMap tm)
tm
- The test map ZedMao object for this runpublic ZedMap getTestMap()
public void loadProcessorMap(java.lang.String fullPath) throws ZedFileInitializationException
fullPath
- The full path (including name) of the processor map file to
load
ZedFileInitializationException
public void loadProcessorMap(java.net.URL url) throws ZedFileInitializationException
ZedFileInitializationException
public void setProcessorMap(ZedMap pm)
pm
- The processor map MapFile object for this runpublic ZedMap getProcessorMap()
public void loadReporter(java.lang.String className) throws ZedContextException
className
- The name of the ZedReporter implementation class to use
ZedContextException
public void setReporter(ZedReporter r)
r
- The ZedReporter object for this runpublic ZedReporter getReporter()
public java.util.LinkedHashMap loadTestProcessors() throws ZedContextException
Note: setTests() or loadTests() must be called before this method
ZedContextException
public void setTestProcessors(java.util.LinkedHashMap tp)
tp
- LinkedHashMap of ZedTestProcessor objects to use in this run
(key = id)public java.util.LinkedHashMap getTestProcessors()
public java.util.LinkedHashMap loadTests() throws ZedContextException
ZedContextException
public void setTests(java.util.LinkedHashMap t)
t
- LinkedHashMap of ZedTest objects to use in this run (key = id)public java.util.LinkedHashMap getTests()
public void printTests()
public java.lang.String getAppName()
public java.lang.String getAppVersion()
public java.lang.String getSpecYear()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |