summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/tests/GhostsTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/maze/tests/GhostsTest.java')
-rw-r--r--src/ch/epfl/maze/tests/GhostsTest.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ch/epfl/maze/tests/GhostsTest.java b/src/ch/epfl/maze/tests/GhostsTest.java
index 782a8f3..c8c71a9 100644
--- a/src/ch/epfl/maze/tests/GhostsTest.java
+++ b/src/ch/epfl/maze/tests/GhostsTest.java
@@ -22,6 +22,8 @@ import org.junit.Test;
22 22
23public class GhostsTest extends TestCase { 23public class GhostsTest extends TestCase {
24 24
25 public static final boolean DEBUG = false;
26
25 /** 27 /**
26 * Tests the behavior of Blinky. 28 * Tests the behavior of Blinky.
27 * <p> 29 * <p>
@@ -39,7 +41,7 @@ public class GhostsTest extends TestCase {
39 d.addPrey(new PacMan(new Vector2D(1, 5), false)); 41 d.addPrey(new PacMan(new Vector2D(1, 5), false));
40 42
41 Display display = new Display(simulation); 43 Display display = new Display(simulation);
42 display.setDebug(true); 44 display.setDebug(GhostsTest.DEBUG);
43 display.run(); 45 display.run();
44 } 46 }
45 47
@@ -60,7 +62,7 @@ public class GhostsTest extends TestCase {
60 d.addPrey(new PacMan(new Vector2D(6, 3), true)); 62 d.addPrey(new PacMan(new Vector2D(6, 3), true));
61 63
62 Display display = new Display(simulation); 64 Display display = new Display(simulation);
63 display.setDebug(true); 65 display.setDebug(GhostsTest.DEBUG);
64 display.run(); 66 display.run();
65 } 67 }
66 68
@@ -82,7 +84,7 @@ public class GhostsTest extends TestCase {
82 d.addPrey(new PacMan(new Vector2D(5, 5), false)); 84 d.addPrey(new PacMan(new Vector2D(5, 5), false));
83 85
84 Display display = new Display(simulation); 86 Display display = new Display(simulation);
85 display.setDebug(true); 87 display.setDebug(GhostsTest.DEBUG);
86 display.run(); 88 display.run();
87 } 89 }
88 90
@@ -103,7 +105,7 @@ public class GhostsTest extends TestCase {
103 d.addPrey(new PacMan(new Vector2D(8, 3), false)); 105 d.addPrey(new PacMan(new Vector2D(8, 3), false));
104 106
105 Display display = new Display(simulation); 107 Display display = new Display(simulation);
106 display.setDebug(true); 108 display.setDebug(GhostsTest.DEBUG);
107 display.run(); 109 display.run();
108 } 110 }
109 111