All Packages Class Hierarchy This Package Previous Next Index
Class com.sgi.sysadm.category.ItemTestResult
java.lang.Object
|
+----com.sgi.sysadm.category.ItemTestResult
- public class ItemTestResult
- extends Object
A class that contains the results of testing an Item with an
ItemTester.
- See Also:
- ItemTester
-
TEST_FAILED
- A static object that represents a failed test.
-
TEST_PASSED
- A static object that represents a successful test.
-
ItemTestResult(Object)
- The constuctor.
-
passed()
- Returns a boolean that tells if the Item passed the test.
-
reason()
-
Returns an Object representing the reason the item didn't
pass the test
TEST_PASSED
public static final ItemTestResult TEST_PASSED
- A static object that represents a successful test.
TEST_FAILED
public static final ItemTestResult TEST_FAILED
- A static object that represents a failed test.
ItemTestResult
public ItemTestResult(Object reason)
- The constuctor. Creates a result specifying that the item
didn't pass the test and takes an Object representing the
reason. If you want to return a successful result, use the
TEST_PASSED constant.
- Parameters:
- reason - An object representing the reason the item didn't
pass the test
passed
public boolean passed()
- Returns a boolean that tells if the Item passed the test.
reason
public Object reason()
- Returns an Object representing the reason the item didn't
pass the test
All Packages Class Hierarchy This Package Previous Next Index