Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
janelleenqi committed Oct 30, 2023
1 parent ba337fe commit 9584d5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/seedu/duke/views/CommandLineViewTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ public void restoreStreams() {

//success scenario for CEG
@Test
void printTXTFile_validFilePath_expectRequiredModulesShown() throws FileNotFoundException {
void printTXTFile_validFilePath_expectRequiredModulesShown() {
ModulePlannerController controller = new ModulePlannerController();
controller.getRequiredModules(Major.valueOf("CEG"));
// Capture the printed output
String printedOutput = outputStream.toString().trim();

// Assert the printed output matches the expected value
assertEquals(String.format(
assertEquals((
"#===========================================================================================#\n" +
"║\tModular Requirements for CEG \tUnits\t\n" +
"#===========================================================================================#\n" +
Expand Down

0 comments on commit 9584d5b

Please sign in to comment.