File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/main/java/org/junit/contrib/java/lang/system Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 9
9
</parent >
10
10
11
11
<artifactId >system-rules</artifactId >
12
- <version >1.10.1 </version >
12
+ <version >1.11.0-SNAPSHOT </version >
13
13
<packaging >jar</packaging >
14
14
15
15
<name >System Rules</name >
Original file line number Diff line number Diff line change 25
25
*
26
26
* @Test
27
27
* public void readTextFromStandardInputStream() {
28
- * systemInMock.provide ("foo");
28
+ * systemInMock.provideText ("foo");
29
29
* Scanner scanner = new Scanner(System.in);
30
30
* assertEquals("foo", scanner.nextLine());
31
31
* }
38
38
* <pre>
39
39
* @Test
40
40
* public void readTextFromStandardInputStream() {
41
- * systemInMock.provide ("foo\n", "bar\n");
41
+ * systemInMock.provideText ("foo\n", "bar\n");
42
42
* Scanner firstScanner = new Scanner(System.in);
43
43
* scanner.nextLine();
44
44
* Scanner secondScanner = new Scanner(System.in);
@@ -71,6 +71,7 @@ public TextFromStandardInputStream(String text) {
71
71
* provide multiple texts. In that case {@code System.in.read()}
72
72
* returns -1 once when the end of a single text is reached and
73
73
* continues with the next text afterwards.
74
+ *
74
75
* @param texts a list of texts.
75
76
*/
76
77
public void provideText (String ... texts ) {
You can’t perform that action at this time.
0 commit comments