From b68d26889fddd091f81f9b6210ac1331b1ecbf61 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 21:47:55 +0100 Subject: [PATCH] added Test for CreateLayout method --- src/test/java/Gui/GameGuiTest.java | 7 +++++++ 1 file changed, 7 insertions(+) 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); + } }