org.junit.contrib.java.lang.system.LogMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of system-rules Show documentation
Show all versions of system-rules Show documentation
A collection of JUnit rules for testing code which uses java.lang.System.
package org.junit.contrib.java.lang.system;
/**
* @deprecated This enum is no longer needed, because all rules that are using
* it have been replaced with rules that don't need the enum.
*
* Mode of the
* {@link org.junit.contrib.java.lang.system.StandardErrorStreamLog} and the
* {@link org.junit.contrib.java.lang.system.StandardOutputStreamLog}.
*/
@Deprecated
public enum LogMode {
/**
* @deprecated Please use
* {@link SystemErrRule#enableLog()}.{@link SystemErrRule#mute() mute()} or
* {@link SystemOutRule#enableLog()}.{@link SystemOutRule#mute() mute()}.
*
*
Capture the writes to the stream. Nothing is written to the stream
* itself.
*/
LOG_ONLY,
/**
* @deprecated Please use {@link SystemErrRule#enableLog()} or
* {@link SystemOutRule#enableLog()}.
*
*
Record the writes while they are still written to the stream.
*/
LOG_AND_WRITE_TO_STREAM
}