From 298fde40551908d875cfe08d80ac701af86b5f71 Mon Sep 17 00:00:00 2001 From: Nick Stolbov Date: Thu, 20 Jan 2022 19:29:57 +0100 Subject: [PATCH] Refactored MenuManagerTest for better naming convention --- src/test/java/Application/MenuManagerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/Application/MenuManagerTest.java b/src/test/java/Application/MenuManagerTest.java index 83c632a..45e7b65 100644 --- a/src/test/java/Application/MenuManagerTest.java +++ b/src/test/java/Application/MenuManagerTest.java @@ -27,7 +27,7 @@ class MenuManagerTest { } @Test - void testSelectFunction() { + void select() { assertNull(mm.getCurrentMenu()); mm.select(0); assertEquals(mm.getCurrentMenu().getName(), "Menu1"); @@ -36,14 +36,14 @@ class MenuManagerTest { } @Test - void testIsRootMenuFunction() { + void inRootMenu() { assertTrue(mm.inRootMenu()); mm.select(0); assertFalse(mm.inRootMenu()); } @Test - void testBackFunction() { + void back() { try { mm.back(); Assertions.fail("Test failed: shouldn't be able to go back in rootMenu");