From eb7e4bdd80b3bd883156811f9c84b29e89222599 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 14:56:58 +0100 Subject: [PATCH] created Test for CreatePanel method --- src/test/java/Gui/guiTest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/test/java/Gui/guiTest.java b/src/test/java/Gui/guiTest.java index d37814a..5f7ab48 100644 --- a/src/test/java/Gui/guiTest.java +++ b/src/test/java/Gui/guiTest.java @@ -36,6 +36,19 @@ class guiTest { assertEquals(Start,StartTarget); assertEquals(Close,CloseTarget); } + + @Test + public void testCreatePanel() { + //arrange + int NumPanels = 3; + + //act + int TargetNumPanels = gui.Panel.getComponents().length; + + //assert + assertEquals(NumPanels,TargetNumPanels); + } + }