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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of all available tests.Returns the test results.booleanisGreen()Returns true, if the conditions in all tests were fulfilled.booleanisRed()Returns true if one of the tests found a violated condition.booleanisYellow()Returns true if one of the tests found a questionable condition.voidrunTests(CmsSetupBean setupBean) Runs all tests.voidrunTests(CmsSetupBean setupBean, String serverInfo) Runs all tests.protected voidsetGreen()Sets if the conditions in all testes were fulfilled.protected voidsetRed()Sets if one of the tests found a violated condition.protected voidSets if one of the tests found a questionable condition.protected voidwriteVersionInfo(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
-