-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTester.java
More file actions
54 lines (46 loc) · 1.34 KB
/
Copy pathTester.java
File metadata and controls
54 lines (46 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import static org.junit.Assert.*;
import java.awt.*;
import java.awt.event.InputEvent;
import org.junit.Test;
public class Tester {
/**
*
* @throws AWTException this exception is mandatory for robots
* For testing the functionality of the options menu
*/
@Test
public void optionsTest() throws AWTException {
Robot bot = new Robot();
MenuScreen.main(null);
bot.mouseMove(630, 390);
bot.delay(3000);
bot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
bot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
bot.mouseMove(50, 890);
bot.delay(3000);
bot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
bot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
bot.delay(3000);
//fail("Not yet implemented");
}
/**
*
* @throws AWTException this exception is mandatory for robots
* For testing the functionality of the highscore menu
*/
@Test
public void highscoreTest() throws AWTException {
Robot bot = new Robot();
MenuScreen.main(null);
bot.mouseMove(630, 500);
bot.delay(3000);
bot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
bot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
bot.mouseMove(50, 890);
bot.delay(3000);
bot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
bot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
bot.delay(3000);
//fail("Not yet implemented");
}
}