public class CmsSetupTests
extends java.lang.Object
构造器和说明 |
---|
CmsSetupTests()
Creates a new setup test suite.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<I_CmsSetupTest> |
getAllTests()
Returns a list of all available tests.
|
java.util.List<CmsSetupTestResult> |
getTestResults()
Returns the test results.
|
boolean |
isGreen()
Returns true, if the conditions in all tests were fulfilled.
|
boolean |
isRed()
Returns true if one of the tests found a violated condition.
|
boolean |
isYellow()
Returns true if one of the tests found a questionable condition.
|
void |
runTests(CmsSetupBean setupBean)
Runs all tests.
|
void |
runTests(CmsSetupBean setupBean,
java.lang.String serverInfo)
Runs all tests.
|
protected void |
setGreen()
Sets if the conditions in all testes were fulfilled.
|
protected void |
setRed()
Sets if one of the tests found a violated condition.
|
protected void |
setYellow()
Sets if one of the tests found a questionable condition.
|
protected void |
writeVersionInfo(java.lang.String thisEngine,
java.lang.String usedJDK,
java.lang.String basePath)
Writes the version info of the used servlet engine and the used JDK
to the version.txt.
|
public java.util.List<I_CmsSetupTest> getAllTests()
public java.util.List<CmsSetupTestResult> getTestResults()
public boolean isGreen()
public boolean isRed()
public boolean isYellow()
public void runTests(CmsSetupBean setupBean)
setupBean
- the CmsSetup bean of the setup wizardpublic void runTests(CmsSetupBean setupBean, java.lang.String serverInfo)
setupBean
- the CmsSetup bean of the setup wizardserverInfo
- optional server info, if not present the server info is retrieved from the beanprotected void setGreen()
protected void setRed()
protected void setYellow()
protected void writeVersionInfo(java.lang.String thisEngine, java.lang.String usedJDK, java.lang.String basePath)
thisEngine
- The servlet engine in useusedJDK
- The JDK version in usebasePath
- the OpenCms base path