Browse Source

created Test for CreatePanel method

master
Leon Montag 2 years ago
parent
commit
eb7e4bdd80
  1. 13
      src/test/java/Gui/guiTest.java

13
src/test/java/Gui/guiTest.java

@ -37,5 +37,18 @@ class guiTest {
assertEquals(Close,CloseTarget);
}
@Test
public void testCreatePanel() {
//arrange
int NumPanels = 3;
//act
int TargetNumPanels = gui.Panel.getComponents().length;
//assert
assertEquals(NumPanels,TargetNumPanels);
}
}
Loading…
Cancel
Save