| java.lang.Object org.hanseltest.CoverException
CoverException | public class CoverException (Code) | | Class used to test coverage of exception handlers.
author: Niklas Mehner |
Method Summary | |
public int | coverComplex(Exception e) Test a more complex try..catch..finally block.
Parameters: e - some Exception. | public int | coverFinally(int e, boolean cover) Test coverage of finally.
Parameters: e - some int. Parameters: cover - Wether the try..finally block is executed. | public int | coverHandler(int e) Contains simple exception handler.
Parameters: e - some int. |
coverComplex | public int coverComplex(Exception e)(Code) | | Test a more complex try..catch..finally block.
Parameters: e - some Exception. 9 if e == null,4 if e != null,2 if e instanceof RuntimeException. |
coverFinally | public int coverFinally(int e, boolean cover)(Code) | | Test coverage of finally.
Parameters: e - some int. Parameters: cover - Wether the try..finally block is executed. if cover 5 / e, or -1 if (e = 0), 0 otherwise. |
coverHandler | public int coverHandler(int e)(Code) | | Contains simple exception handler.
Parameters: e - some int. 5 / e, or -1 if (e = 0). |
|
|