Annotation Type ReadsStdIo
@Retention(RUNTIME)
@Target({CONSTRUCTOR,METHOD,PACKAGE,TYPE})
@Inherited
public @interface ReadsStdIo
Marks tests that read the static fields
System.in, System.out or System.err
but don't call System.setIn(), System.setOut() or System.setErr().
During
parallel test execution,
all tests annotated with StdIo, ReadsStdIo, and WritesStdIo
are scheduled in a way that guarantees correctness under mutation of shared global state.
For more details and examples, see the documentation on standard input/output.
- Since:
- 0.9