Package org.opencms.setup.comptest
Class CmsSetupTests
java.lang.Object
org.opencms.setup.comptest.CmsSetupTests
Runs various tests to give users infos about whether their system is compatible to OpenCms.
- Since:
- 6.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list of all available tests.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, 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
Sets if one of the tests found a questionable condition.protected void
writeVersionInfo
(String thisEngine, String usedJDK, String basePath) Writes the version info of the used servlet engine and the used JDK to the version.txt.
-
Constructor Details
-
CmsSetupTests
public CmsSetupTests()Creates a new setup test suite.
-
-
Method Details
-
getAllTests
Returns a list of all available tests.- Returns:
- a list of all available tests
-
getTestResults
Returns the test results.- Returns:
- the test results
-
isGreen
Returns true, if the conditions in all tests were fulfilled.- Returns:
- true, if the conditions in all tests were fulfilled
-
isRed
Returns true if one of the tests found a violated condition. It is assumed that it will be impossible to run OpenCms.- Returns:
- true if one of the tests violates a condition
-
isYellow
Returns true if one of the tests found a questionable condition. It is possible that OpenCms will not run.- Returns:
- true if one of the tests found a questionable condition
-
runTests
Runs all tests.- Parameters:
setupBean
- the CmsSetup bean of the setup wizard
-
runTests
Runs all tests.- Parameters:
setupBean
- the CmsSetup bean of the setup wizardserverInfo
- optional server info, if not present the server info is retrieved from the bean
-
setGreen
Sets if the conditions in all testes were fulfilled. -
setRed
Sets if one of the tests found a violated condition. -
setYellow
Sets if one of the tests found a questionable condition. -
writeVersionInfo
Writes the version info of the used servlet engine and the used JDK to the version.txt.- Parameters:
thisEngine
- The servlet engine in useusedJDK
- The JDK version in usebasePath
- the OpenCms base path
-