Skip to content

Commit

Permalink
Compare Test
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffinsonDarmawan committed Apr 15, 2024
1 parent 44c80db commit 045c36b
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/test/java/florizz/command/CompareCommandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,10 @@ void testCompareException2() { // Comparing a flower that does not exist
}

@Test
void testCompareException3() { // Comparing against an empty flower name
void testCompareException3() { // Comparing empty flower names
ArrayList<Bouquet> testList = new ArrayList<>();
Ui ui = new Ui();
CompareCommand testCompareCommand3 = new CompareCommand("Rose", "");
assertThrows(FlorizzException.class, () -> testCompareCommand3.execute(testList, ui));
}
@Test
void testCompareException4() { // Comparing empty flower names
ArrayList<Bouquet> testList = new ArrayList<>();
Ui ui = new Ui();
CompareCommand testCompareCommand3 = new CompareCommand("", "");
assertThrows(FlorizzException.class, () -> testCompareCommand3.execute(testList, ui));
CompareCommand testCompareCommand4 = new CompareCommand("", "");
assertThrows(FlorizzException.class, () -> testCompareCommand4.execute(testList, ui));
}
}

0 comments on commit 045c36b

Please sign in to comment.