Skip to content

Commit

Permalink
Adjust variables to before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coraleaf0602 committed Oct 8, 2024
1 parent a5cfb03 commit c72dc1b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/test/java/seedu/bookbob/BookBobTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
public class BookBobTest {
CommandHandler command = new CommandHandler();
Records records = new Records();
ByteArrayOutputStream outputStreamCaptor = new ByteArrayOutputStream();
PrintStream standardOut = System.out;

@Test
public void sampleTest() {
assertTrue(true);
}

ByteArrayOutputStream outputStreamCaptor = new ByteArrayOutputStream();
PrintStream standardOut = System.out;

@BeforeEach
public void setUp() {
System.setOut(new PrintStream(outputStreamCaptor));
Expand Down

0 comments on commit c72dc1b

Please sign in to comment.