| java.lang.Object junitx.ddtunit.ExceptionHandler
ExceptionHandler | class ExceptionHandler (Code) | | Handler for processing of exceptions caught during tst execution.
author: jg |
ExceptionHandler | public ExceptionHandler(String methodName)(Code) | | Instanciate ExceptionHandler
Parameters: methodName - |
checkOnExpectedException | public void checkOnExpectedException(String testId, TypedObjectMap assertMap)(Code) | | Check if an expected exception was not thrown during test execution. If
an expected exception was defined but not raised throw an appropriate
exception.
Parameters: testId - of executed test under testmethod. Parameters: assertMap - containing all assert information incl. expectedexceptions |
process | public void process(String testId, Throwable aThrowable, TypedObjectMap assertMap) throws Throwable(Code) | | Process caught exception of test
Parameters: testId - identifiing method test Parameters: aThrowable - Parameters: assertMap - containing infod about expected exceptions throws: Throwable - uncaught exception |
summarizeProblems | void summarizeProblems(int testCount)(Code) | | Summarize problems of method tests. If any errors were detected a
method error will be thrown, if only assertion errors were detected
only an assertion error will be thrown. First line contains summary
statistics, following lines
Parameters: testCount - under testmethod |
|
|