Package org.testng.internal.invokers
Class InvokeMethodRunnable
- java.lang.Object
-
- org.testng.internal.invokers.InvokeMethodRunnable
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Boolean>
public class InvokeMethodRunnable extends java.lang.Object implements java.util.concurrent.Callable<java.lang.Boolean>
A Runnable Method invoker.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InvokeMethodRunnable.TestNGRuntimeException
-
Field Summary
Fields Modifier and Type Field Description private IHookable
m_hookable
private java.lang.Object
m_instance
private ITestNGMethod
m_method
private java.lang.Object[]
m_parameters
private ITestResult
m_testResult
-
Constructor Summary
Constructors Constructor Description InvokeMethodRunnable(ITestNGMethod thisMethod, java.lang.Object instance, java.lang.Object[] parameters, IHookable hookable, ITestResult testResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
call()
boolean
run()
private boolean
runOne()
-
-
-
Field Detail
-
m_method
private final ITestNGMethod m_method
-
m_instance
private final java.lang.Object m_instance
-
m_parameters
private final java.lang.Object[] m_parameters
-
m_hookable
private final IHookable m_hookable
-
m_testResult
private final ITestResult m_testResult
-
-
Constructor Detail
-
InvokeMethodRunnable
public InvokeMethodRunnable(ITestNGMethod thisMethod, java.lang.Object instance, java.lang.Object[] parameters, IHookable hookable, ITestResult testResult)
-
-
Method Detail
-
run
public boolean run() throws InvokeMethodRunnable.TestNGRuntimeException
-
runOne
private boolean runOne()
-
call
public java.lang.Boolean call() throws java.lang.Exception
- Specified by:
call
in interfacejava.util.concurrent.Callable<java.lang.Boolean>
- Throws:
java.lang.Exception
-
-