Package de.tum.in.test.api.io
Class InputTester
java.lang.Object
de.tum.in.test.api.io.InputTester
public final class InputTester
extends java.lang.Object
Can provide console input, and throws an exception if more is requested than
is available. The provided lines get numbered.
- Since:
- 0.1.0
- Version:
- 1.0.1
- Author:
- Christian Femers
- See Also:
IOTester
-
Constructor Summary
Constructors Constructor Description InputTester() -
Method Summary
Modifier and Type Method Description voidaddLinesToInput(java.lang.String... lines)LinegetNextLine()booleanhasNextLine()voidreset()
-
Constructor Details
-
InputTester
public InputTester()
-
-
Method Details
-
getNextLine
-
hasNextLine
public boolean hasNextLine() -
addLinesToInput
public void addLinesToInput(java.lang.String... lines) -
reset
public void reset()
-