| java.lang.Object org.apache.pluto.testsuite.TestUtils
TestUtils | public class TestUtils (Code) | | Static class that provides utility methods for Pluto testsuite.
since: 2006-02-13 |
Method Summary | |
public 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. | public 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. | public static void | failOnException(String message, Throwable cause, TestResult result) Sets the test result return code to FAILED , and reports
exception details. |
failOnAssertion | public static void failOnAssertion(String valuesName, String[] valuesGot, String[] valuesExpected, TestResult result)(Code) | | Sets the test result return code to FAILED , and reports
assertion details by specifying values got and values expected.
Parameters: valueName - the name of the values to assert. Parameters: valueGot - the values got. Parameters: valueExpected - the values expected. Parameters: result - the test result. |
failOnAssertion | public static void failOnAssertion(String valueName, Object valueGot, Object valueExpected, TestResult result)(Code) | | Sets the test result return code to FAILED , and reports
assertion details by specifying value got and value expected.
Parameters: valueName - the name of the value to assert. Parameters: valueGot - the value object got. Parameters: valueExpected - the value object expected. Parameters: result - the test result. |
failOnException | public static void failOnException(String message, Throwable cause, TestResult result)(Code) | | Sets the test result return code to FAILED , and reports
exception details.
Parameters: message - the error message. Parameters: cause - the cause exception. Parameters: result - the test result. |
|
|