Fix test name

This commit is contained in:
anujgaud
2024-02-03 19:24:33 +05:30
committed by GitHub
parent d45bf19622
commit f3d6abbf6a
@@ -30,7 +30,7 @@ public class SystemInReadUnitTest {
} }
@Test @Test
void givenUserInput_whenUsingReadSingleCharacter_thenReading() { void givenUserInput_whenUsingReadWithParameters_thenRead() {
System.setIn(new ByteArrayInputStream("ABC".getBytes())); System.setIn(new ByteArrayInputStream("ABC".getBytes()));
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
System.setOut(new PrintStream(outputStream)); System.setOut(new PrintStream(outputStream));