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
-
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.boolean
isGreen()
Returns true, if the conditions the test were fulfilled.boolean
isRed()
Returns true if the test found a violated condition.boolean
isYellow()
Returns true if the test found a questionable condition.protected void
setGreen()
Sets if the conditions in the test were fulfilled.protected void
Sets the help string what to do if a test failed.protected void
Sets the description of the test, e.g.protected void
Sets the name of the test, e.g.protected void
setRed()
Sets if the test found a violated condition.protected void
Sets the result of the test, e.g.protected void
Sets 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.
-