Skip to content

Commit

Permalink
Added JUnit tests for Bouquet
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelory committed Mar 14, 2024
1 parent 3406f85 commit c207a32
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 c207a32

Please sign in to comment.