Top Description Inners Fields Constructors Methods
org.testng.internal.invokers

public Class InvokeMethodRunnable

extends Object
implements Callable<Boolean>
Class Inheritance
All Implemented Interfaces
java.util.concurrent.Callable
Imports
java.util.Optional, java.util.concurrent.Callable, org.testng.IHookable, .ITestNGMethod, .ITestResult, org.testng.internal.ConstructorOrMethod

A Runnable Method invoker.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final IHookable
private final Object
private final ITestNGMethod
private final Object[]
private final ITestResult

Constructor Summary

AccessConstructor and Description
public
InvokeMethodRunnable(ITestNGMethod thisMethod, Object instance, Object[] parameters, IHookable hookable, ITestResult testResult)

Method Summary

Modifier and TypeMethod and Description
public Boolean
call()

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.
public boolean
run()

private boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_hookableback to summary
private final IHookable m_hookable
m_instanceback to summary
private final Object m_instance
m_methodback to summary
private final ITestNGMethod m_method
m_parametersback to summary
private final Object[] m_parameters
m_testResultback to summary
private final ITestResult m_testResult

Constructor Detail

InvokeMethodRunnableback to summary
public InvokeMethodRunnable(ITestNGMethod thisMethod, Object instance, Object[] parameters, IHookable hookable, ITestResult testResult)

Method Detail

callback to summary
public Boolean call() throws Exception

Implements java.util.concurrent.Callable.call.

Doc from java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Returns:Boolean

computed result

Annotations
@Override
Exceptions
Exception:
if unable to compute a result
runback to summary
public boolean run() throws TestNGRuntimeException
runOneback to summary
private boolean runOne()
org.testng.internal.invokers back to summary

public Class InvokeMethodRunnable.TestNGRuntimeException

extends RuntimeException
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

TestNGRuntimeExceptionback to summary
public TestNGRuntimeException(Throwable rootCause)