Update JavaScannerUnitTest.java

This commit is contained in:
Eric Martin
2019-11-01 23:48:07 -05:00
committed by GitHub
parent e8a597b5e9
commit 1431f23337

View File

@@ -29,7 +29,6 @@ public class JavaScannerUnitTest {
}
@Test(expected = NoSuchElementException.class)
public void givenNoNewLine_whenReadingNextLine_thenThrowNoSuchElementException() {
try (Scanner scanner = new Scanner("")) {
String result = scanner.nextLine();