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

Variable Index

 o TEST_FAILED
A static object that represents a failed test.
 o TEST_PASSED
A static object that represents a successful test.

Constructor Index

 o ItemTestResult(Object)
The constuctor.

Method Index

 o passed()
Returns a boolean that tells if the Item passed the test.
 o reason()
Returns an Object representing the reason the item didn't pass the test

Variables

 o TEST_PASSED
 public static final ItemTestResult TEST_PASSED
A static object that represents a successful test.

 o TEST_FAILED
 public static final ItemTestResult TEST_FAILED
A static object that represents a failed test.

Constructors

 o 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

Methods

 o passed
 public boolean passed()
Returns a boolean that tells if the Item passed the test.

 o 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