Skip to content

Commit 69619bd

Browse files
committed
Fix Javadoc of TextFromStandardInputStream.
The Javadoc used a wrong method name.
1 parent 638372c commit 69619bd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</parent>
1010

1111
<artifactId>system-rules</artifactId>
12-
<version>1.10.1</version>
12+
<version>1.11.0-SNAPSHOT</version>
1313
<packaging>jar</packaging>
1414

1515
<name>System Rules</name>

src/main/java/org/junit/contrib/java/lang/system/TextFromStandardInputStream.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* &#064;Test
2727
* public void readTextFromStandardInputStream() {
28-
* systemInMock.provide("foo");
28+
* systemInMock.provideText("foo");
2929
* Scanner scanner = new Scanner(System.in);
3030
* assertEquals("foo", scanner.nextLine());
3131
* }
@@ -38,7 +38,7 @@
3838
* <pre>
3939
* &#064;Test
4040
* public void readTextFromStandardInputStream() {
41-
* systemInMock.provide("foo\n", "bar\n");
41+
* systemInMock.provideText("foo\n", "bar\n");
4242
* Scanner firstScanner = new Scanner(System.in);
4343
* scanner.nextLine();
4444
* Scanner secondScanner = new Scanner(System.in);
@@ -71,6 +71,7 @@ public TextFromStandardInputStream(String text) {
7171
* provide multiple texts. In that case {@code System.in.read()}
7272
* returns -1 once when the end of a single text is reached and
7373
* continues with the next text afterwards.
74+
*
7475
* @param texts a list of texts.
7576
*/
7677
public void provideText(String... texts) {

0 commit comments

Comments
 (0)