|
|
@ -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()); |
|
|
|
|
|
|
|
} |
|
|
|
} |