Update JavaScannerUnitTest.java
This commit is contained in:
parent
7e61f39222
commit
33d819efee
@ -29,7 +29,6 @@ public class JavaScannerUnitTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = NoSuchElementException.class)
|
@Test(expected = NoSuchElementException.class)
|
||||||
|
|
||||||
public void givenNoNewLine_whenReadingNextLine_thenThrowNoSuchElementException() {
|
public void givenNoNewLine_whenReadingNextLine_thenThrowNoSuchElementException() {
|
||||||
try (Scanner scanner = new Scanner("")) {
|
try (Scanner scanner = new Scanner("")) {
|
||||||
String result = scanner.nextLine();
|
String result = scanner.nextLine();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user