@ -43,7 +43,7 @@ public class MouseGame extends JFrame {
public MouseGame() throws AWTException {
//Fensterrahmen Haupt Layout
setTitle("Maze Game");
setTitle("Mouse Game");
setBounds(100, 100, 900, 650);
robot.mouseMove(200, 170);
@ -131,4 +131,5 @@ public class MouseGame extends JFrame {
}
});
}//end class
@ -28,5 +28,14 @@ public class MouseGameTest {
//Then
assertTrue(true);
@Test
public void titelUeberpruefen() throws AWTException {
//Given
MouseGame mg = new MouseGame();
assertTrue(mg.getTitle()=="Mouse Game");