Class TreePrintingListener
- java.lang.Object
-
- org.junit.platform.console.output.TreePrintingListener
-
- All Implemented Interfaces:
DetailsPrintingListener,org.junit.platform.launcher.TestExecutionListener
@API(status=INTERNAL, since="1.14") public class TreePrintingListener extends java.lang.Object implements DetailsPrintingListener- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<org.junit.platform.engine.UniqueId,TreeNode>nodesByUniqueIdprivate TreeNoderootprivate TreePrintertreePrinter-
Fields inherited from interface org.junit.platform.console.output.DetailsPrintingListener
LINE_START_PATTERN
-
-
Constructor Summary
Constructors Constructor Description TreePrintingListener(java.io.PrintWriter out, ColorPalette colorPalette, Theme theme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddNode(org.junit.platform.launcher.TestIdentifier testIdentifier, TreeNode node)voidexecutionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)voidexecutionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, java.lang.String reason)voidexecutionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)voidfileEntryPublished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.FileEntry file)private TreeNodegetNode(org.junit.platform.launcher.TestIdentifier testIdentifier)voidlistTests(org.junit.platform.launcher.TestPlan testPlan)voidreportingEntryPublished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.ReportEntry entry)voidtestPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)voidtestPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
-
-
-
Field Detail
-
nodesByUniqueId
private final java.util.Map<org.junit.platform.engine.UniqueId,TreeNode> nodesByUniqueId
-
root
private TreeNode root
-
treePrinter
private final TreePrinter treePrinter
-
-
Constructor Detail
-
TreePrintingListener
public TreePrintingListener(java.io.PrintWriter out, ColorPalette colorPalette, Theme theme)
-
-
Method Detail
-
addNode
private void addNode(org.junit.platform.launcher.TestIdentifier testIdentifier, TreeNode node)
-
getNode
private TreeNode getNode(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
testPlanExecutionStarted
public void testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
- Specified by:
testPlanExecutionStartedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
testPlanExecutionFinished
public void testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)
- Specified by:
testPlanExecutionFinishedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionStarted
public void executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
- Specified by:
executionStartedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionFinished
public void executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)- Specified by:
executionFinishedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionSkipped
public void executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, java.lang.String reason)- Specified by:
executionSkippedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
reportingEntryPublished
public void reportingEntryPublished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.ReportEntry entry)- Specified by:
reportingEntryPublishedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
fileEntryPublished
public void fileEntryPublished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.FileEntry file)- Specified by:
fileEntryPublishedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
listTests
public void listTests(org.junit.platform.launcher.TestPlan testPlan)
- Specified by:
listTestsin interfaceDetailsPrintingListener
-
-