Package org.opencms.setup.comptest
Class CmsSetupTestResult
java.lang.Object
org.opencms.setup.comptest.CmsSetupTestResult
Contains info about the result of a setup test.
- Since:
- 6.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHelp()Returns the help string what to do if a test failed.getInfo()Returns the description of the test, e.g.getName()Returns the name of the test, e.g.Returns the result of the test, e.g.booleanisGreen()Returns true, if the conditions the test were fulfilled.booleanisRed()Returns true if the test found a violated condition.booleanisYellow()Returns true if the test found a questionable condition.protected voidsetGreen()Sets if the conditions in the test were fulfilled.protected voidSets the help string what to do if a test failed.protected voidSets the description of the test, e.g.protected voidSets the name of the test, e.g.protected voidsetRed()Sets if the test found a violated condition.protected voidSets the result of the test, e.g.protected voidSets if the test found a questionable condition.
-
Constructor Details
-
CmsSetupTestResult
Creates a new setup test result.- Parameters:
test- the test to keep track of
-
-
Method Details
-
getHelp
Returns the help string what to do if a test failed.This string will be displayed in a help bubble.
- Returns:
- the help string what to do if a test failed
-
getInfo
Returns the description of the test, e.g. "Test xy failed due to...".- Returns:
- the description of the test
-
getName
Returns the name of the test, e.g. "Operating system test".- Returns:
- the name of the test
-
getResult
Returns the result of the test, e.g. "Detected Apache Tomcat/4.1.24...".- Returns:
- the result of the test
-
isGreen
Returns true, if the conditions the test were fulfilled.- Returns:
- true, if the conditions the test were fulfilled
-
isRed
Returns true if the test found a violated condition. It is assumed that it will be impossible to run OpenCms.- Returns:
- true if the test found a violated a condition
-
isYellow
Returns true if the test found a questionable condition. It is possible that OpenCms will not run.- Returns:
- true if the test found a questionable condition
-
setGreen
Sets if the conditions in the test were fulfilled. -
setHelp
Sets the help string what to do if a test failed.This string will be displayed in a help bubble.
- Parameters:
help- the help string what to do if a test failed
-
setInfo
Sets the description of the test, e.g. "Test xy failed due to...".- Parameters:
info- the description of the test
-
setName
Sets the name of the test, e.g. "Operating system test".- Parameters:
name- the name of the test
-
setRed
Sets if the test found a violated condition. -
setResult
Sets the result of the test, e.g. "Detected Apache Tomcat/4.1.24...".- Parameters:
result- the result of the test
-
setYellow
Sets if the test found a questionable condition.
-