|
@ -3,6 +3,7 @@ package de.hs_fulda.gruppenprojekt.JavaGamelauncher; |
|
|
import static org.junit.Assert.*; |
|
|
import static org.junit.Assert.*; |
|
|
|
|
|
|
|
|
import java.awt.AWTException; |
|
|
import java.awt.AWTException; |
|
|
|
|
|
import java.awt.Color; |
|
|
import java.awt.MouseInfo; |
|
|
import java.awt.MouseInfo; |
|
|
import java.awt.Point; |
|
|
import java.awt.Point; |
|
|
import java.awt.PointerInfo; |
|
|
import java.awt.PointerInfo; |
|
@ -91,4 +92,15 @@ public class MouseGameTest { |
|
|
//Then |
|
|
//Then |
|
|
assertTrue(mg.getHoehePanel()==569); |
|
|
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()); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |