|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthings.testing.unit.TestCase
public class TestCase
A test case. This will be used to collect results for a Test.
5
, 1.0
Version History
EPG - Initial - 30 NOV 04 EPG - Re-write - 18 JUN 05
Field Summary | |
---|---|
java.lang.String |
message
|
java.lang.String |
name
|
static java.lang.String |
NAMELESS_NAME
|
Result |
theResult
|
Constructor Summary | |
---|---|
TestCase()
The default constructor. |
|
TestCase(java.lang.String theName)
The named constructor. |
Method Summary | |
---|---|
void |
abort(java.lang.String msg)
Set an abort result. |
void |
addValue(java.lang.String name,
java.lang.String value)
Add a name/value. |
void |
comment(java.lang.String msg)
Set a comment result. |
void |
exception(java.lang.String msg)
Set a exception result. |
void |
fail(java.lang.String msg)
Set a fail result. |
java.lang.String |
getCode()
Get the code. |
java.lang.String |
getMessage()
Get the message for this case. |
Result |
getResult()
Get the result for this case. |
long |
getSize()
Get the size value. |
long |
getTime()
Get the time value in miliseconds. |
java.util.List<NV> |
getValues()
Get values list. |
void |
inconclusive(java.lang.String msg)
Set an inconclusive result. |
void |
pass(java.lang.String msg)
Set a pass result. |
void |
setCode(java.lang.String theCode)
Set the code. |
void |
setMessage(java.lang.String message)
Set the message for this case. |
void |
setSize(long size)
Set the size value. |
void |
setTime(long time)
Set the time value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAMELESS_NAME
public java.lang.String name
public java.lang.String message
public Result theResult
Constructor Detail |
---|
public TestCase()
public TestCase(java.lang.String theName)
theName
- the name of the caseMethod Detail |
---|
public Result getResult()
Result
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the messagepublic void pass(java.lang.String msg)
msg
- The message associated with this result.public void fail(java.lang.String msg)
msg
- The message associated with this result.public void exception(java.lang.String msg)
msg
- The message associated with this result.public void abort(java.lang.String msg)
msg
- The message associated with this result.public void inconclusive(java.lang.String msg)
msg
- The message associated with this result.public void comment(java.lang.String msg)
msg
- The message associated with this result.public long getSize()
public void setSize(long size)
size
- the sizepublic long getTime()
public void setTime(long time)
time
- the timepublic java.lang.String getCode()
public void setCode(java.lang.String theCode)
theCode
- the codepublic void addValue(java.lang.String name, java.lang.String value)
name
- the namevalue
- the valuepublic java.util.List<NV> getValues()
NV
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |