Browse Source

[MouseGameTest Class]: Test: "titelUeberpruefen" erstellt

remotes/origin/MouseGame
fdai7382 2 years ago
parent
commit
adf1c0bf4e
  1. 3
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java
  2. 9
      JavaGamelauncher/src/test/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGameTest.java

3
JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java

@ -43,7 +43,7 @@ public class MouseGame extends JFrame {
public MouseGame() throws AWTException { public MouseGame() throws AWTException {
//Fensterrahmen Haupt Layout //Fensterrahmen Haupt Layout
setTitle("Maze Game");
setTitle("Mouse Game");
setBounds(100, 100, 900, 650); setBounds(100, 100, 900, 650);
robot.mouseMove(200, 170); robot.mouseMove(200, 170);
@ -131,4 +131,5 @@ public class MouseGame extends JFrame {
} }
}); });
} }
}//end class }//end class

9
JavaGamelauncher/src/test/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGameTest.java

@ -29,4 +29,13 @@ public class MouseGameTest {
assertTrue(true); assertTrue(true);
} }
@Test
public void titelUeberpruefen() throws AWTException {
//Given
MouseGame mg = new MouseGame();
//Then
assertTrue(mg.getTitle()=="Mouse Game");
}
} }
Loading…
Cancel
Save