summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/tests/GhostsTest.java
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-11-24 11:11:17 +0100
committerPacien TRAN-GIRARD2015-11-24 11:11:17 +0100
commitbc477506342411e9156b3230d847cb92bcb8e5f9 (patch)
treed952a5d14dccef38bfba3f8e27bfe10ea65d446a /src/ch/epfl/maze/tests/GhostsTest.java
parent903553fe9e03e4af75eb7f8547e08b480bc58ec4 (diff)
downloadmaze-solver-bc477506342411e9156b3230d847cb92bcb8e5f9.tar.gz
Reformat code
Diffstat (limited to 'src/ch/epfl/maze/tests/GhostsTest.java')
-rw-r--r--src/ch/epfl/maze/tests/GhostsTest.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ch/epfl/maze/tests/GhostsTest.java b/src/ch/epfl/maze/tests/GhostsTest.java
index c8c71a9..f4e0c2e 100644
--- a/src/ch/epfl/maze/tests/GhostsTest.java
+++ b/src/ch/epfl/maze/tests/GhostsTest.java
@@ -19,7 +19,6 @@ import org.junit.Test;
19/** 19/**
20 * Test suite for ghosts implementation. 20 * Test suite for ghosts implementation.
21 */ 21 */
22
23public class GhostsTest extends TestCase { 22public class GhostsTest extends TestCase {
24 23
25 public static final boolean DEBUG = false; 24 public static final boolean DEBUG = false;
@@ -29,7 +28,6 @@ public class GhostsTest extends TestCase {
29 * <p> 28 * <p>
30 * In this case, Blinky should go straight to the PacMan's position. 29 * In this case, Blinky should go straight to the PacMan's position.
31 */ 30 */
32
33 @Test 31 @Test
34 public void testBlinky() { 32 public void testBlinky() {
35 int[][] labyrinth = LabyrinthGenerator.getDebugBlinky(); 33 int[][] labyrinth = LabyrinthGenerator.getDebugBlinky();
@@ -50,7 +48,6 @@ public class GhostsTest extends TestCase {
50 * <p> 48 * <p>
51 * In this case, Pinky should go back and forth. 49 * In this case, Pinky should go back and forth.
52 */ 50 */
53
54 @Test 51 @Test
55 public void testPinky() { 52 public void testPinky() {
56 int[][] labyrinth = LabyrinthGenerator.getDebugPinky(); 53 int[][] labyrinth = LabyrinthGenerator.getDebugPinky();
@@ -71,7 +68,6 @@ public class GhostsTest extends TestCase {
71 * <p> 68 * <p>
72 * In this case, Inky should target the red tile of the labyrinth. 69 * In this case, Inky should target the red tile of the labyrinth.
73 */ 70 */
74
75 @Test 71 @Test
76 public void testInky() { 72 public void testInky() {
77 int[][] labyrinth = LabyrinthGenerator.getDebugInky(); 73 int[][] labyrinth = LabyrinthGenerator.getDebugInky();
@@ -93,7 +89,6 @@ public class GhostsTest extends TestCase {
93 * <p> 89 * <p>
94 * In this case, Clyde should go back and forth. 90 * In this case, Clyde should go back and forth.
95 */ 91 */
96
97 @Test 92 @Test
98 public void testClyde() { 93 public void testClyde() {
99 int[][] labyrinth = LabyrinthGenerator.getDebugClyde(); 94 int[][] labyrinth = LabyrinthGenerator.getDebugClyde();
@@ -112,7 +107,6 @@ public class GhostsTest extends TestCase {
112 /** 107 /**
113 * Mock class to create a dummy PacMan in our testing unit. 108 * Mock class to create a dummy PacMan in our testing unit.
114 */ 109 */
115
116 private class PacMan extends Prey { 110 private class PacMan extends Prey {
117 111
118 private boolean mMoves; 112 private boolean mMoves;
@@ -123,7 +117,6 @@ public class GhostsTest extends TestCase {
123 * @param position Starting position of PacMan in the labyrinth 117 * @param position Starting position of PacMan in the labyrinth
124 * @param moves Determines if the dummy PacMan will move back and forth 118 * @param moves Determines if the dummy PacMan will move back and forth
125 */ 119 */
126
127 public PacMan(Vector2D position, boolean moves) { 120 public PacMan(Vector2D position, boolean moves) {
128 super(position); 121 super(position);
129 mMoves = moves; 122 mMoves = moves;
@@ -142,4 +135,5 @@ public class GhostsTest extends TestCase {
142 return new PacMan(getPosition(), mMoves); 135 return new PacMan(getPosition(), mMoves);
143 } 136 }
144 } 137 }
138
145} 139}