|
SAP NetWeaver 7.30 SP02 Process Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.aii.utilxi.rtcheck.base.TestResult
public abstract class TestResult
This class is an abstract superclass for outcomes of tests. Instances of its sub-classes are returned as part of various self-test features in PI.
| Field Summary | |
|---|---|
static int |
NOT_OK
Integer constant representing an unsuccessful result. |
static String |
NOT_OK_STRING
Constant label representing an un-successful result. |
static int |
OK
Integer constant representing a successful result. |
static String |
OK_STRING
Constant label representing a successful result. |
static int |
OK_WITH_WARNING
Integer constant representing a successful result with reservations. |
static String |
OK_WITH_WARNING_STRING
Constant label representing a successful result, but with reservations. |
protected int |
overallResult
Overall outcome of the test |
static int[] |
RESULT_VARIANTS
Array of all result constants. |
static int |
UNDEFINED
Integer constant representing an 'undefined' result. |
static String |
UNDEFINED_STRING
Constant label representing an undefined result. |
static String |
UNDERSCORED_NOT_OK_STRING
Alternative constant label representing an unsuccessful result. |
static String |
UNDERSCORED_OK_WITH_WARNING_STRING
Alternative constant label representing a successful result with reservations. |
| Constructor Summary | |
|---|---|
TestResult()
Creates initial (empty) test result. |
|
TestResult(int overallResult,
String feature,
String featureDescr)
Creates a test result for a given feature with a given overall result. |
|
| Method Summary | |
|---|---|
void |
addTestResult(TestResult result)
Adds a new test result to this instance. |
static int |
asInt(String result)
Returns an integer value representing the test result label result . |
static String |
asString(int result)
Returns a String label representing the test result result. |
String |
getCheckedFeature()
Gets the tested feature name. |
Object |
getDetails()
Returns the custom details object associated with his test result or null if no such object is associated. |
String |
getFeatureDescription()
Gets the tested feature description. |
int |
getOverallResult()
Obtain the overall result of this test |
Collection |
getSubResults()
Returns a collection of all sub-results of this instance. |
static int |
getWorst(int result1,
int result2)
Compares 2 test results and returns the "worst" of them. |
boolean |
hasDetails()
Returns true if this instance has an associated details object and false otherwise |
void |
setCheckedFeature(String checkedFeature)
Sets the tested feature name. |
void |
setFeatureDescription(String featureDescription)
Sets the tested feature description. |
void |
setOverallResult(int overallResult)
Sets the overall result of this test |
protected String |
shortDescription()
Returns a textual description of overall result, checked feature and feature description. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNDEFINED
public static final int OK
public static final int OK_WITH_WARNING
public static final int NOT_OK
public static final String UNDEFINED_STRING
public static final String OK_STRING
public static final String OK_WITH_WARNING_STRING
public static final String NOT_OK_STRING
public static final String UNDERSCORED_OK_WITH_WARNING_STRING
public static final String UNDERSCORED_NOT_OK_STRING
public static final int[] RESULT_VARIANTS
protected int overallResult
| Constructor Detail |
|---|
public TestResult()
public TestResult(int overallResult,
String feature,
String featureDescr)
overallResult - test outcomefeature - checked featurefeatureDescr - more detailed feature description| Method Detail |
|---|
public static int asInt(String result)
result . Returns constant UNDEFINED, if
result can not be interpreted as test result.
result - a test result label
public static String asString(int result)
result.
Returns null, if result can not be interpreted as test
result.
result - a test result integer value
public static int getWorst(int result1,
int result2)
NOT_OK < OK_WITH_WARNING < OK < UNDEFINED
public int getOverallResult()
public void setOverallResult(int overallResult)
overallResult - integer value which should be one of the constants in
RESULT_VARIANTS.public void setCheckedFeature(String checkedFeature)
checkedFeature - public String getCheckedFeature()
public void setFeatureDescription(String featureDescription)
featureDescription - public String getFeatureDescription()
public void addTestResult(TestResult result)
public Collection getSubResults()
protected String shortDescription()
public boolean hasDetails()
public Object getDetails()
|
SAP NetWeaver 7.30 SP02 Process Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||