You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
432 B

  1. package Application;
  2. import org.junit.jupiter.api.AfterEach;
  3. import org.junit.jupiter.api.BeforeEach;
  4. import org.junit.jupiter.api.Test;
  5. import static org.junit.jupiter.api.Assertions.*;
  6. class MenuTest {
  7. @BeforeEach
  8. void setUp() {
  9. }
  10. @AfterEach
  11. void tearDown() {
  12. }
  13. @Test
  14. void testCorrectName(){
  15. Menu menu = new Menu("Item 1");
  16. assertTrue(menu.getName().equals("Item 1"));
  17. }
  18. }