Invoke the method.
()
| 52 | * Invoke the method. |
| 53 | */ |
| 54 | @Override |
| 55 | public void run() |
| 56 | { |
| 57 | try |
| 58 | { |
| 59 | mTestMethod.invoke(mInvokeClass, mParameter); |
| 60 | } |
| 61 | catch (IllegalAccessException e) |
| 62 | { |
| 63 | e.printStackTrace(mLog); |
| 64 | mErrMessage = e.getMessage(); |
| 65 | mExceptionHappened = true; |
| 66 | } |
| 67 | catch (java.lang.reflect.InvocationTargetException e) |
| 68 | { |
| 69 | Throwable t = e.getTargetException(); |
| 70 | if (!(t instanceof ComplexTestCase.AssureException)) |
| 71 | { |
| 72 | t.printStackTrace(mLog); |
| 73 | mErrMessage = t.getMessage(); |
| 74 | if (mErrMessage == null) |
| 75 | { |
| 76 | mErrMessage = t.toString(); |
| 77 | } |
| 78 | mExceptionHappened = true; |
| 79 | } |
| 80 | |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Get the error message |
nothing calls this directly
no test coverage detected