-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKivaCommandTester.java
36 lines (34 loc) · 1.14 KB
/
KivaCommandTester.java
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
/**
* Write a description of class KivaCommandTester here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class KivaCommandTester
{
public void testForward() {
KivaCommand command = KivaCommand.FORWARD;
System.out.println(command);
System.out.println(command.getDirectionKey());
}
public void testTurnLeft() {
KivaCommand command = KivaCommand.TURN_LEFT;
System.out.println(command);
System.out.println(command.getDirectionKey());
}
public void testTurnRight() {
KivaCommand command = KivaCommand.TURN_RIGHT;
System.out.println(command);
System.out.println(command.getDirectionKey());
}
public void testTake() {
KivaCommand command = KivaCommand.TAKE;
System.out.println(command);
System.out.println(command.getDirectionKey());
}
public void testDrop() {
KivaCommand command = KivaCommand.DROP;
System.out.println(command);
System.out.println(command.getDirectionKey());
}
}