Class TestExecutor
- java.lang.Object
-
- org.thymeleaf.testing.templateengine.engine.TestExecutor
-
public final class TestExecutor extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classTestExecutor.ExecutorTaskstatic classTestExecutor.ThrottleType
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<IDialect>dialectsprivate java.lang.Stringnameprivate IProcessingContextBuilderprocessingContextBuilderprotected ITestReporterreporterprivate ITestableResolvertestableResolverprivate static java.lang.ThreadLocal<java.lang.String>threadExecutionIdprivate static java.lang.ThreadLocal<ITest>threadTestprivate static java.lang.ThreadLocal<java.lang.String>threadTestNameprivate intthrottleStepprivate TestExecutor.ThrottleTypethrottleType
-
Constructor Summary
Constructors Constructor Description TestExecutor(java.lang.String name, IProcessingContextBuilder processingContextBuilder)TestExecutor(IProcessingContextBuilder processingContextBuilder)
-
Method Summary
-
-
-
Field Detail
-
processingContextBuilder
private final IProcessingContextBuilder processingContextBuilder
-
name
private final java.lang.String name
-
testableResolver
private ITestableResolver testableResolver
-
dialects
private java.util.List<IDialect> dialects
-
throttleStep
private int throttleStep
-
throttleType
private TestExecutor.ThrottleType throttleType
-
reporter
protected ITestReporter reporter
-
threadExecutionId
private static java.lang.ThreadLocal<java.lang.String> threadExecutionId
-
threadTestName
private static java.lang.ThreadLocal<java.lang.String> threadTestName
-
threadTest
private static java.lang.ThreadLocal<ITest> threadTest
-
-
Constructor Detail
-
TestExecutor
public TestExecutor(IProcessingContextBuilder processingContextBuilder)
-
TestExecutor
public TestExecutor(java.lang.String name, IProcessingContextBuilder processingContextBuilder)
-
-
Method Detail
-
getThreadExecutionId
public static java.lang.String getThreadExecutionId()
-
getThreadTestName
public static java.lang.String getThreadTestName()
-
getThreadTest
public static ITest getThreadTest()
-
setThreadExecutionId
protected static void setThreadExecutionId(java.lang.String executionId)
-
setThreadTestName
private static void setThreadTestName(java.lang.String testName)
-
setThreadTest
private static void setThreadTest(ITest test)
-
getTestableResolver
public ITestableResolver getTestableResolver()
-
setTestableResolver
public void setTestableResolver(ITestableResolver testableResolver)
-
getProcessingContextBuilder
public IProcessingContextBuilder getProcessingContextBuilder()
-
setDialects
public void setDialects(java.util.List<? extends IDialect> dialects)
-
getDialects
public java.util.List<IDialect> getDialects()
-
setThrottleStep
public void setThrottleStep(int throttleStep)
-
getThrottleStep
public int getThrottleStep()
-
getThrottleType
public TestExecutor.ThrottleType getThrottleType()
-
setThrottleType
public void setThrottleType(TestExecutor.ThrottleType throttleType)
-
setReporter
public void setReporter(ITestReporter reporter)
-
getReporter
public ITestReporter getReporter()
-
execute
public void execute(java.lang.String testableName)
-
execute
private void execute(ITestable testable, TestExecutionContext context)
-
executeTestable
protected TestExecutionResult executeTestable(ITestable testable, TestExecutionContext context)
-
executeSequence
private TestExecutionResult executeSequence(ITestSequence sequence, TestExecutionContext context)
-
executeIterator
private TestExecutionResult executeIterator(ITestIterator iterator, TestExecutionContext context)
-
executeParallelizer
private TestExecutionResult executeParallelizer(ITestParallelizer parallelizer, TestExecutionContext context)
-
executeTest
private TestExecutionResult executeTest(ITest test, TestExecutionContext context)
-
reset
public final void reset()
-
isAllOK
public final boolean isAllOK()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-