| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ThrowException |
|
| 1.5;1.5 |
| 1 | package biz.xsoftware.impl.mock; | |
| 2 | ||
| 3 | public final class ThrowException implements Action { | |
| 4 | ||
| 5 | private final Throwable e; | |
| 6 | ||
| 7 | 8 | public ThrowException(Throwable e) { |
| 8 | 8 | this.e = e; |
| 9 | 8 | } |
| 10 | ||
| 11 | /* | |
| 12 | * (non-Javadoc) | |
| 13 | * @see biz.xsoftware.impl.mock.Action#execute(java.lang.Object[]) | |
| 14 | */ | |
| 15 | public Object execute(Object[] args) throws Throwable { | |
| 16 | 8 | e.fillInStackTrace(); |
| 17 | 8 | throw e; |
| 18 | } | |
| 19 | ||
| 20 | } |