-
@Retention(RUNTIME) @Target({METHOD,ANNOTATION_TYPE}) @ExtendWith(StdIoExtension.class) public @interface StdIoAllows specifying the input that's read fromSystem.inas well as capturing lines read fromSystem.in(with parameterStdIn) or written toSystem.out(with parameterStdOut).The annotated test method can have zero, one, or both parameters, but
StdIncan only be provided ifvalue()is used to specify input - otherwise anExtensionConfigurationExceptionwill be thrown.During parallel test execution, all tests annotated with
StdIo,ReadsStdIo, andWritesStdIoare 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.7
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String[]valueProvides the intercepted standard input with values.
-
-
-
Element Detail
-
value
java.lang.String[] value
Provides the intercepted standard input with values. If this is not blank, the annotated method can have aStdInparameter.- Default:
- {}
-
-