public class AnsiTerminalDecorator extends MxRunListenerDecorator
Modifier and Type | Field and Description |
---|---|
static String |
BG_BLACK
Background black.
|
static String |
BG_BLUE
Background blue.
|
static String |
BG_CYAN
Background cyan.
|
static String |
BG_GREEN
Background green.
|
static String |
BG_MAGENTA
Background magenta.
|
static String |
BG_RED
Background red.
|
static String |
BG_WHITE
Background white.
|
static String |
BG_YELLOW
Background yellow.
|
static String |
BLACK
Foreground black.
|
static String |
BLUE
Foreground blue.
|
static String |
BOLD_BLACK
Foreground bold black.
|
static String |
BOLD_BLUE
Foreground bold blue.
|
static String |
BOLD_CYAN
Foreground bold cyan.
|
static String |
BOLD_GREEN
Foreground bold green.
|
static String |
BOLD_MAGENTA
Foreground bold magenta.
|
static String |
BOLD_RED
Foreground bold red.
|
static String |
BOLD_WHITE
Foreground bold white.
|
static String |
BOLD_YELLOW
Foreground bold yellow.
|
static String |
CYAN
Foreground cyan.
|
static String |
GREEN
Foreground green.
|
static String |
MAGENTA
Foreground magenta.
|
static String |
RED
Foreground red.
|
static String |
RESET
Reset.
|
static String |
UNDERLINED
Underline.
|
static String |
WHITE
Foreground white.
|
static String |
YELLOW
Foreground yellow.
|
Constructor and Description |
---|
AnsiTerminalDecorator(MxRunListener l) |
Modifier and Type | Method and Description |
---|---|
void |
testAssumptionFailure(org.junit.runner.notification.Failure failure)
Called when an atomic test flags that it assumes a condition that is false.
|
void |
testFailed(org.junit.runner.notification.Failure failure)
Called when an atomic test fails.
|
void |
testIgnored(org.junit.runner.Description description)
Called when a test will not be run, generally because a test method is annotated with
Ignore . |
void |
testSucceeded(org.junit.runner.Description description)
Called when an atomic test succeeds.
|
getWriter, testClassFinished, testClassFinishedDelimiter, testClassStarted, testClassStartedDelimiter, testFinished, testFinishedDelimiter, testRunFinished, testRunStarted, testStarted, testStartedDelimiter
public static final String BLACK
public static final String RED
public static final String GREEN
public static final String YELLOW
public static final String BLUE
public static final String MAGENTA
public static final String CYAN
public static final String WHITE
public static final String BOLD_BLACK
public static final String BOLD_RED
public static final String BOLD_GREEN
public static final String BOLD_YELLOW
public static final String BOLD_BLUE
public static final String BOLD_MAGENTA
public static final String BOLD_CYAN
public static final String BOLD_WHITE
public static final String BG_BLACK
public static final String BG_RED
public static final String BG_GREEN
public static final String BG_YELLOW
public static final String BG_BLUE
public static final String BG_MAGENTA
public static final String BG_CYAN
public static final String BG_WHITE
public static final String RESET
public static final String UNDERLINED
public AnsiTerminalDecorator(MxRunListener l)
public void testSucceeded(org.junit.runner.Description description)
MxRunListener
testSucceeded
in interface MxRunListener
testSucceeded
in class MxRunListenerDecorator
description
- describes the test that will not be runpublic void testAssumptionFailure(org.junit.runner.notification.Failure failure)
MxRunListener
testAssumptionFailure
in interface MxRunListener
testAssumptionFailure
in class MxRunListenerDecorator
failure
- describes the test that failed and the AssumptionViolatedException
that was thrownpublic void testFailed(org.junit.runner.notification.Failure failure)
MxRunListener
testFailed
in interface MxRunListener
testFailed
in class MxRunListenerDecorator
failure
- describes the test that failed and the exception that was thrownpublic void testIgnored(org.junit.runner.Description description)
MxRunListener
Ignore
.testIgnored
in interface MxRunListener
testIgnored
in class MxRunListenerDecorator
description
- describes the test that will not be run