diff --git a/src/test/java/Gui/GameGuiTest.java b/src/test/java/Gui/GameGuiTest.java index 8e291a3..d557d6d 100644 --- a/src/test/java/Gui/GameGuiTest.java +++ b/src/test/java/Gui/GameGuiTest.java @@ -22,6 +22,13 @@ class GameGuiTest { gameGui.createGui(); } + @Test + public void testCreateLayout() { + assertNotNull(gameGui.gbc); + assertEquals(1, gameGui.gbc.gridwidth); + assertEquals(GridBagConstraints.HORIZONTAL, gameGui.gbc.fill); + assertEquals(new Insets(10, 10, 10, 10), gameGui.gbc.insets); + } }