Skip to content

Commit

Permalink
Merge pull request nus-cs2113-AY2324S2#14 from samuelory/Samuel-V0.2
Browse files Browse the repository at this point in the history
Added JUnit tests for Bouquet
  • Loading branch information
samuelory authored Mar 14, 2024
2 parents 3406f85 + c207a32 commit 9ce1e24
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/test/java/florizz/objects/BouquetTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package florizz.objects;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;

public class BouquetTest {
@Test
void testToString() {
Bouquet testBouquet = new Bouquet("For Mom");
assertEquals("For Mom", testBouquet.toString());
}

@Test
void testEquals(){
Bouquet testBouquet1 = new Bouquet ("For Mom");
Bouquet testBouquet2 = new Bouquet ("For Mom");
Bouquet testBouquet3 = new Bouquet ("For GF");
assertEquals(testBouquet1, testBouquet2);
assertNotEquals(testBouquet1, testBouquet3);
}
}

0 comments on commit 9ce1e24

Please sign in to comment.