Annotation Type WritesStdIo


  • @Retention(RUNTIME)
    @Target({CONSTRUCTOR,METHOD,PACKAGE,TYPE})
    @Inherited
    public @interface WritesStdIo
    Marks tests that call System.setIn(), System.setOut() or System.setErr() to set the static fields System.in/System.out/System.err.

    During parallel test execution, all tests annotated with StdIo, WritesStdIo, 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