Class TestFeedPrintingListener
- java.lang.Object
-
- org.junit.platform.console.output.TestFeedPrintingListener
-
- All Implemented Interfaces:
DetailsPrintingListener,org.junit.platform.launcher.TestExecutionListener
@API(status=INTERNAL, since="1.14") public class TestFeedPrintingListener extends java.lang.Object implements DetailsPrintingListener
-
-
Field Summary
Fields Modifier and Type Field Description private ColorPalettecolorPaletteprivate static java.lang.StringINDENTATIONprivate java.io.PrintWriteroutprivate static java.lang.StringSTATUS_SEPARATORprivate org.junit.platform.launcher.TestPlantestPlan-
Fields inherited from interface org.junit.platform.console.output.DetailsPrintingListener
LINE_START_PATTERN
-
-
Constructor Summary
Constructors Constructor Description TestFeedPrintingListener(java.io.PrintWriter out, ColorPalette colorPalette)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.List<java.lang.String>collectDisplayNames(org.junit.platform.engine.UniqueId uniqueId)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)private java.lang.StringformatTestIdentifier(org.junit.platform.launcher.TestIdentifier testIdentifier)private static java.lang.Stringindented(java.lang.String message)voidlistTests(org.junit.platform.launcher.TestPlan testPlan)private voidprintln(Style style, java.lang.String message)private static booleanshouldPrint(org.junit.platform.launcher.TestIdentifier testIdentifier)voidtestPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)voidtestPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
-
-
-
Field Detail
-
INDENTATION
private static final java.lang.String INDENTATION
- See Also:
- Constant Field Values
-
STATUS_SEPARATOR
private static final java.lang.String STATUS_SEPARATOR
- See Also:
- Constant Field Values
-
out
private final java.io.PrintWriter out
-
colorPalette
private final ColorPalette colorPalette
-
testPlan
private org.junit.platform.launcher.TestPlan testPlan
-
-
Constructor Detail
-
TestFeedPrintingListener
public TestFeedPrintingListener(java.io.PrintWriter out, ColorPalette colorPalette)
-
-
Method Detail
-
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
-
executionSkipped
public void executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, java.lang.String reason)- Specified by:
executionSkippedin 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
-
formatTestIdentifier
private java.lang.String formatTestIdentifier(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
println
private void println(Style style, java.lang.String message)
-
collectDisplayNames
private java.util.List<java.lang.String> collectDisplayNames(org.junit.platform.engine.UniqueId uniqueId)
-
indented
private static java.lang.String indented(java.lang.String message)
-
listTests
public void listTests(org.junit.platform.launcher.TestPlan testPlan)
- Specified by:
listTestsin interfaceDetailsPrintingListener
-
shouldPrint
private static boolean shouldPrint(org.junit.platform.launcher.TestIdentifier testIdentifier)
-
-