MCPcopy Create free account
hub / github.com/LibreOffice/core / run

Method run

qadevOOo/runner/complexlib/MethodThread.java:54–82  ·  view source on GitHub ↗

Invoke the method.

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

printStackTraceMethod · 0.80
getMessageMethod · 0.80
getTargetExceptionMethod · 0.80
invokeMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected