Class FlatPrintingListener
java.lang.Object
org.junit.platform.console.output.FlatPrintingListener
- All Implemented Interfaces:
DetailsPrintingListener, org.junit.platform.launcher.TestExecutionListener
@API(status=INTERNAL,
since="1.14")
public class FlatPrintingListener
extends Object
implements DetailsPrintingListener
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ColorPalette(package private) static final Stringprivate final PrintWriterFields inherited from interface DetailsPrintingListener
LINE_START_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddynamicTestRegistered(org.junit.platform.launcher.TestIdentifier testIdentifier) voidexecutionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult) voidexecutionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, String reason) voidexecutionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier) voidfileEntryPublished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.FileEntry file) private static StringIndent the given message if it is a multi-line string.voidlistTests(org.junit.platform.launcher.TestPlan testPlan) private voidprivate voidprintlnException(Style style, Throwable throwable) private voidprintlnMessage(Style style, String message, String detail) private voidprintlnTestDescriptor(Style style, String message, org.junit.platform.launcher.TestIdentifier testIdentifier) 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 Details
-
INDENTATION
- See Also:
-
out
-
colorPalette
-
-
Constructor Details
-
FlatPrintingListener
-
-
Method Details
-
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
-
dynamicTestRegistered
public void dynamicTestRegistered(org.junit.platform.launcher.TestIdentifier testIdentifier) - Specified by:
dynamicTestRegisteredin interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionSkipped
public void executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, 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
-
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
-
printlnTestDescriptor
-
printlnException
-
printlnMessage
-
println
-
indented
Indent the given message if it is a multi-line string.INDENTATIONis used to prefix the start of each new line except the first one.- Parameters:
message- the message to indent- Returns:
- indented message
-
listTests
public void listTests(org.junit.platform.launcher.TestPlan testPlan) - Specified by:
listTestsin interfaceDetailsPrintingListener
-