diff --git a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java index 34eb65b..9db8538 100644 --- a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java +++ b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java @@ -132,6 +132,16 @@ public class MouseGame extends JFrame { }//end standardkonstruktor + public JPanel getContentPane() { + return contentPane; + } + + + public Color getFarbeBeige() { + return farbeBeige; + } + + public int getResetX() { return resetX; } diff --git a/JavaGamelauncher/src/test/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGameTest.java b/JavaGamelauncher/src/test/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGameTest.java index 8f7add9..3498c19 100644 --- a/JavaGamelauncher/src/test/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGameTest.java +++ b/JavaGamelauncher/src/test/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGameTest.java @@ -3,6 +3,7 @@ package de.hs_fulda.gruppenprojekt.JavaGamelauncher; import static org.junit.Assert.*; import java.awt.AWTException; +import java.awt.Color; import java.awt.MouseInfo; import java.awt.Point; import java.awt.PointerInfo; @@ -91,4 +92,15 @@ public class MouseGameTest { //Then assertTrue(mg.getHoehePanel()==569); } + + @Test + public void contentPaneBackgroundPruefen() throws AWTException { + //Given + MouseGame mg = new MouseGame(); + Color farbeBeige = new Color (128,128,128); + + //Then + assertEquals(farbeBeige, mg.getContentPane().getBackground()); + + } }