|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ohrasys.cad.bnf.BNFTestResult
public class BNFTestResult
A class used to represent the completion status of a test. This object contains a list of tokens successfully evaluated by the test, a list of tokens that must be replayed and the completion status of the test which must be one of FINISHED, UNFINISHED, or FAILED.
| Field Summary | |
|---|---|
protected java.util.List<BNFTestableObject> |
committable
A list of tokens that have been successfully evaluated |
static int |
FAILED
Indicates the test failed |
static int |
FINISHED
Indicates the test completed successfully |
protected java.util.List<BNFTestableObject> |
replayable
A list of tokens that must be replayed |
protected int |
status
The completion status of the test |
static int |
UNFINISHED
Indicates the test requires more tokens to resolve |
| Constructor Summary | |
|---|---|
BNFTestResult()
Creates a new BNFTestResult object. |
|
| Method Summary | |
|---|---|
boolean |
addCommittableToken(BNFTestableObject token)
Adds a token to the list of committable tokens |
boolean |
addCommittableTokens(java.util.List<BNFTestableObject> list)
Adds a list of tokens to the list of committable tokens |
boolean |
addReplayableToken(BNFTestableObject token)
Adds a token to the list of replayable tokens |
boolean |
addReplayableTokens(java.util.List<BNFTestableObject> list)
Adds a list of tokens to the list of replayable tokens |
java.util.List<BNFTestableObject> |
getCommittableTokens()
Destructively retrieves the list of committable tokens. |
java.util.List<BNFTestableObject> |
getReplayableTokens()
Destructively retrieves the list of replayable tokens. |
boolean |
isFailed()
Indicates the test failed |
boolean |
isFinished()
Indicates that the test finished |
boolean |
isUnfinished()
Indicatest that the test is unfinished |
void |
setResult(int result)
Sets the completion status of this result object |
java.lang.String |
toString()
Returns a text representation of this object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int FINISHED
public static final int UNFINISHED
public static final int FAILED
protected java.util.List<BNFTestableObject> committable
protected java.util.List<BNFTestableObject> replayable
protected int status
| Constructor Detail |
|---|
public BNFTestResult()
| Method Detail |
|---|
public boolean addCommittableToken(BNFTestableObject token)
token - The token to add
public boolean addCommittableTokens(java.util.List<BNFTestableObject> list)
list - The list of tokens to add
public boolean addReplayableToken(BNFTestableObject token)
token - The token to add
public boolean addReplayableTokens(java.util.List<BNFTestableObject> list)
list - The list of tokens to add
public java.util.List<BNFTestableObject> getCommittableTokens()
public java.util.List<BNFTestableObject> getReplayableTokens()
public boolean isFailed()
public boolean isFinished()
public boolean isUnfinished()
public void setResult(int result)
result - The completion status of the result object
java.lang.IllegalArgumentException - If the result is not one of
FINISHED, UNFINISHED or FAILEDpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||