|
|
@ -4,6 +4,7 @@ import static org.junit.Assert.*; |
|
|
|
|
|
|
|
import java.awt.AWTException; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Font; |
|
|
|
import java.awt.MouseInfo; |
|
|
|
import java.awt.Point; |
|
|
|
import java.awt.PointerInfo; |
|
|
@ -114,4 +115,15 @@ public class MouseGameTest { |
|
|
|
assertEquals(farbeSchwarz, mg.getContentPane().getForeground()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void fontTahomaPruefen() throws AWTException { |
|
|
|
//Given |
|
|
|
MouseGame mg = new MouseGame(); |
|
|
|
Font fontTahoma = new Font("Tahoma", Font.BOLD, 30); |
|
|
|
|
|
|
|
|
|
|
|
//Then |
|
|
|
assertEquals(fontTahoma, mg.getFontTahoma()); |
|
|
|
} |
|
|
|
} |