Package org.junit.support.testng.engine
Class ExecutionListener
java.lang.Object
org.junit.support.testng.engine.DefaultListener
org.junit.support.testng.engine.ExecutionListener
- All Implemented Interfaces:
org.testng.IAlterSuiteListener
,org.testng.IClassListener
,org.testng.IConfigurationListener
,org.testng.ITestListener
,org.testng.ITestNGListener
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<ClassDescriptor, Set<org.testng.ITestResult>> private final org.junit.platform.engine.EngineExecutionListener
private final TestNGEngineDescriptor
private final Set
<org.testng.ITestResult> private final Map
<org.testng.ITestNGMethod, ExecutionListener.MethodProgress> private final TestClassRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionExecutionListener
(org.junit.platform.engine.EngineExecutionListener delegate, TestNGEngineDescriptor engineDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.junit.platform.engine.TestExecutionResult
abortedOrFailed
(Set<org.testng.ITestResult> results) private static Throwable
private void
createInvocationAndReportStarted
(ExecutionListener.MethodProgress progress, int invocationIndex, org.testng.ITestResult result) private MethodDescriptor
findOrCreateMethodDescriptor
(org.testng.ITestResult result) private void
finishMethodsNotYetReportedAsFinished
(org.testng.ITestClass testClass) getAttributes
(org.testng.ITestResult result) private TestDescriptorFactory
private void
handleConfigurationResult
(org.testng.ITestResult result) void
onAfterClass
(org.testng.ITestClass testClass) void
onBeforeClass
(org.testng.ITestClass testClass) void
onConfigurationFailure
(org.testng.ITestResult result) void
onConfigurationSkip
(org.testng.ITestResult result) void
onTestFailedButWithinSuccessPercentage
(org.testng.ITestResult result) void
onTestFailedWithTimeout
(org.testng.ITestResult result) void
onTestFailure
(org.testng.ITestResult result) void
onTestSkipped
(org.testng.ITestResult result) void
onTestStart
(org.testng.ITestResult result) void
onTestSuccess
(org.testng.ITestResult result) private void
reportFinished
(org.testng.ITestResult result, org.junit.platform.engine.TestExecutionResult executionResult) private void
reportStarted
(org.testng.ITestResult result, ExecutionListener.MethodProgress progress) private ExecutionListener.MethodProgress
startMethodProgress
(org.testng.ITestResult result) throwables
(Set<org.testng.ITestResult> results) org.junit.platform.engine.TestExecutionResult
private org.junit.platform.engine.TestExecutionResult
toTestExecutionResult
(Set<org.testng.ITestResult> results) Methods inherited from class org.junit.support.testng.engine.DefaultListener
alter, beforeConfiguration, beforeConfiguration, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccess, onConfigurationSuccess, onFinish, onStart
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testng.ITestNGListener
isEnabled
-
Field Details
-
testClassRegistry
-
inProgressTestMethods
-
engineLevelFailureResults
-
classLevelFailureResults
-
delegate
private final org.junit.platform.engine.EngineExecutionListener delegate -
engineDescriptor
-
-
Constructor Details
-
ExecutionListener
ExecutionListener(org.junit.platform.engine.EngineExecutionListener delegate, TestNGEngineDescriptor engineDescriptor)
-
-
Method Details
-
onBeforeClass
public void onBeforeClass(org.testng.ITestClass testClass) - Specified by:
onBeforeClass
in interfaceorg.testng.IClassListener
- Overrides:
onBeforeClass
in classDefaultListener
-
onConfigurationFailure
public void onConfigurationFailure(org.testng.ITestResult result) - Specified by:
onConfigurationFailure
in interfaceorg.testng.IConfigurationListener
- Overrides:
onConfigurationFailure
in classDefaultListener
-
onConfigurationSkip
public void onConfigurationSkip(org.testng.ITestResult result) - Specified by:
onConfigurationSkip
in interfaceorg.testng.IConfigurationListener
- Overrides:
onConfigurationSkip
in classDefaultListener
-
handleConfigurationResult
private void handleConfigurationResult(org.testng.ITestResult result) -
onAfterClass
public void onAfterClass(org.testng.ITestClass testClass) - Specified by:
onAfterClass
in interfaceorg.testng.IClassListener
- Overrides:
onAfterClass
in classDefaultListener
-
onTestStart
public void onTestStart(org.testng.ITestResult result) - Specified by:
onTestStart
in interfaceorg.testng.ITestListener
- Overrides:
onTestStart
in classDefaultListener
-
onTestSuccess
public void onTestSuccess(org.testng.ITestResult result) - Specified by:
onTestSuccess
in interfaceorg.testng.ITestListener
- Overrides:
onTestSuccess
in classDefaultListener
-
onTestSkipped
public void onTestSkipped(org.testng.ITestResult result) - Specified by:
onTestSkipped
in interfaceorg.testng.ITestListener
- Overrides:
onTestSkipped
in classDefaultListener
-
onTestFailure
public void onTestFailure(org.testng.ITestResult result) - Specified by:
onTestFailure
in interfaceorg.testng.ITestListener
- Overrides:
onTestFailure
in classDefaultListener
-
onTestFailedButWithinSuccessPercentage
public void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result) - Specified by:
onTestFailedButWithinSuccessPercentage
in interfaceorg.testng.ITestListener
- Overrides:
onTestFailedButWithinSuccessPercentage
in classDefaultListener
-
onTestFailedWithTimeout
public void onTestFailedWithTimeout(org.testng.ITestResult result) - Specified by:
onTestFailedWithTimeout
in interfaceorg.testng.ITestListener
- Overrides:
onTestFailedWithTimeout
in classDefaultListener
-
startMethodProgress
-
finishMethodsNotYetReportedAsFinished
private void finishMethodsNotYetReportedAsFinished(org.testng.ITestClass testClass) -
reportStarted
private void reportStarted(org.testng.ITestResult result, ExecutionListener.MethodProgress progress) -
reportFinished
private void reportFinished(org.testng.ITestResult result, org.junit.platform.engine.TestExecutionResult executionResult) -
findOrCreateMethodDescriptor
-
createInvocationAndReportStarted
private void createInvocationAndReportStarted(ExecutionListener.MethodProgress progress, int invocationIndex, org.testng.ITestResult result) -
getTestDescriptorFactory
-
toEngineResult
public org.junit.platform.engine.TestExecutionResult toEngineResult() -
toTestExecutionResult
private org.junit.platform.engine.TestExecutionResult toTestExecutionResult(Set<org.testng.ITestResult> results) -
abortedOrFailed
private static org.junit.platform.engine.TestExecutionResult abortedOrFailed(Set<org.testng.ITestResult> results) -
throwables
-
chain
-
getAttributes
-