|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjetif.MethodResult
The MethodResult class represents a result object of a test
method. It consists of expected result specified in spec and actual result
returned by the test method.
| Field Summary | |
static int |
ACTUAL
Field number for get and set indicating the actual return value. |
static int |
ACTUAL_EXCEPTION
Field number for get and set indicating the actual exception; |
static int |
ELAPSED_TIME
Field number for get and set indicating the elapsed time. |
static int |
ERROR
Field number for get and set indicating the error. |
static int |
EXPECTED
Field number for get and set indicating the expected return value. |
static int |
EXPECTED_EXCEPTION
Field number for get and set indicating the expected exception. |
static int |
PARAMETERS
Field number for get and set indicating the parameters. |
| Method Summary | |
String |
getActual()
Returns actual result of this test method. |
String |
getActualException()
Returns actual exception of this test method. |
long |
getElapsedTime()
Returns elapsed time of this test method. |
String |
getError()
Returns unexpected error of this test method. |
String |
getExpected()
Returns expected result of this test method. |
String |
getExpectedException()
Returns expected exception of this test method. |
String |
getName()
Returns the name of this test method. |
String[] |
getParameters()
Returns a string array represents the parameters of this test method. |
String |
getSignature()
Returns the signature of this test method. |
MethodSpec |
getSpec()
Returns the spec of this test method. |
boolean |
isSet(int field)
Test if the specified field is set. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PARAMETERS
public static final int EXPECTED
public static final int ACTUAL
public static final int EXPECTED_EXCEPTION
public static final int ACTUAL_EXCEPTION
public static final int ERROR
public static final int ELAPSED_TIME
| Method Detail |
public String getName()
public String getSignature()
public String[] getParameters()
public String getExpected()
public String getExpectedException()
public String getActual()
public String getActualException()
public String getError()
public long getElapsedTime()
public MethodSpec getSpec()
public boolean isSet(int field)
field - the field id.
IndexOutOfBoundsException - if the specified field is invalid.
|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||