diff --git a/src/test/java/Application/MenuTest.java b/src/test/java/Application/MenuTest.java index a0297a6..d0494b6 100644 --- a/src/test/java/Application/MenuTest.java +++ b/src/test/java/Application/MenuTest.java @@ -29,17 +29,17 @@ class MenuTest { } @Test - void testCorrectName() { + void getName() { assertEquals("Root", rootMenu.getName()); } @Test - void testAddMenuFunction() { + void addMenu() { assertTrue(rootMenu.getMenu(0).getName().equals("Menu1") && rootMenu.getMenu(1).getName().equals("Menu2") && rootMenu.getMenu(0).getMenu(0).getName().equals("Menu1.1")); } @Test - void testPreviousMenuFunction(){ + void getPreviousMenu(){ assertTrue(rootMenu.getPreviousMenu() == null && rootMenu.getMenu(0).getPreviousMenu().getName().equals("Root") && rootMenu.getMenu(0).getMenu(0).getPreviousMenu().getName().equals("Menu1")); }