java.io.Serializable, java.lang.Comparable<LogMode>@Deprecated public enum LogMode extends java.lang.Enum<LogMode>
Mode of the
StandardErrorStreamLog and the
StandardOutputStreamLog.
| Enum Constant | Description |
|---|---|
LOG_AND_WRITE_TO_STREAM |
Deprecated.
Please use
SystemErrRule.enableLog() or
SystemOutRule.enableLog(). |
LOG_ONLY |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
static LogMode |
valueOf(java.lang.String name) |
Deprecated.
Returns the enum constant of this type with the specified name.
|
static LogMode[] |
values() |
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogMode LOG_ONLY
SystemErrRule.enableLog().mute() or
SystemOutRule.enableLog().mute().
Capture the writes to the stream. Nothing is written to the stream itself.
public static final LogMode LOG_AND_WRITE_TO_STREAM
SystemErrRule.enableLog() or
SystemOutRule.enableLog().
Record the writes while they are still written to the stream.
public static LogMode[] values()
for (LogMode c : LogMode.values()) System.out.println(c);
public static LogMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2011–2018. All rights reserved.