|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.testsuite.TestUtils
public class TestUtils
Static class that provides utility methods for Pluto testsuite.
Method Summary | |
---|---|
static void |
failOnAssertion(String valueName,
Object valueGot,
Object valueExpected,
TestResult result)
Sets the test result return code to FAILED , and reports
assertion details by specifying value got and value expected. |
static void |
failOnAssertion(String valuesName,
String[] valuesGot,
String[] valuesExpected,
TestResult result)
Sets the test result return code to FAILED , and reports
assertion details by specifying values got and values expected. |
static void |
failOnException(String message,
Throwable cause,
TestResult result)
Sets the test result return code to FAILED , and reports
exception details. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void failOnAssertion(String valuesName, String[] valuesGot, String[] valuesExpected, TestResult result)
FAILED
, and reports
assertion details by specifying values got and values expected.
valueName
- the name of the values to assert.valueGot
- the values got.valueExpected
- the values expected.result
- the test result.public static void failOnAssertion(String valueName, Object valueGot, Object valueExpected, TestResult result)
FAILED
, and reports
assertion details by specifying value got and value expected.
valueName
- the name of the value to assert.valueGot
- the value object got.valueExpected
- the value object expected.result
- the test result.public static void failOnException(String message, Throwable cause, TestResult result)
FAILED
, and reports
exception details.
message
- the error message.cause
- the cause exception.result
- the test result.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |