Skip to content

Commit c4469ab

Browse files
authored
Merge pull request #159 from lizihan95/master
Fixed issue on add booking test
2 parents 014670a + fce17f4 commit c4469ab

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/java/duketest/bookingcommandstest/AddBookingCommandTest.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,15 @@ public void testAddBookingCommand() throws ParseException {
3636
"Now you have 4 bookings in the list.";
3737
arrExpectedOutput.add(expectedOutput);
3838

39+
DeleteBookingCommand deleteBookingCommand1 = new DeleteBookingCommand("deletebooking 4");
40+
deleteBookingCommand1.execute(bookingList, ui, bookingStorage);
41+
3942
AddBookingCommand addBookingCommand = new AddBookingCommand(testCase);
4043
ArrayList<String> arrActualOutput = new ArrayList<>(addBookingCommand.execute(bookingList, ui, bookingStorage));
4144

42-
4345
assertEquals(arrExpectedOutput, arrActualOutput);
4446
System.out.println("Test passed.");
45-
46-
DeleteBookingCommand deleteBookingCommand1 = new DeleteBookingCommand("deletebooking 4");
47+
4748
deleteBookingCommand1.execute(bookingList, ui, bookingStorage);
4849

4950
}

0 commit comments

Comments
 (0)