summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/tests/AnimalTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/maze/tests/AnimalTest.java')
-rw-r--r--src/ch/epfl/maze/tests/AnimalTest.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ch/epfl/maze/tests/AnimalTest.java b/src/ch/epfl/maze/tests/AnimalTest.java
index 4a590ae..123c038 100644
--- a/src/ch/epfl/maze/tests/AnimalTest.java
+++ b/src/ch/epfl/maze/tests/AnimalTest.java
@@ -9,13 +9,11 @@ import org.junit.Test;
9/** 9/**
10 * Test case for {@code Animal} implementation. 10 * Test case for {@code Animal} implementation.
11 */ 11 */
12
13public class AnimalTest extends TestCase { 12public class AnimalTest extends TestCase {
14 13
15 /** 14 /**
16 * Test case for {@code getPosition()}. 15 * Test case for {@code getPosition()}.
17 */ 16 */
18
19 @Test 17 @Test
20 public void testGetPosition() { 18 public void testGetPosition() {
21 Animal animal = new MockAnimal(new Vector2D(2, 1)); 19 Animal animal = new MockAnimal(new Vector2D(2, 1));
@@ -27,7 +25,6 @@ public class AnimalTest extends TestCase {
27 /** 25 /**
28 * Test case for {@code setPosition(Vector2D position)}. 26 * Test case for {@code setPosition(Vector2D position)}.
29 */ 27 */
30
31 @Test 28 @Test
32 public void testSetPosition() { 29 public void testSetPosition() {
33 Animal animal = new MockAnimal(new Vector2D(2, 1)); 30 Animal animal = new MockAnimal(new Vector2D(2, 1));
@@ -40,7 +37,6 @@ public class AnimalTest extends TestCase {
40 /** 37 /**
41 * Test case for {@code update(Direction dir)}. 38 * Test case for {@code update(Direction dir)}.
42 */ 39 */
43
44 @Test 40 @Test
45 public void testUpdate() { 41 public void testUpdate() {
46 Animal animal = new MockAnimal(new Vector2D(2, 1)); 42 Animal animal = new MockAnimal(new Vector2D(2, 1));
@@ -69,7 +65,6 @@ public class AnimalTest extends TestCase {
69 /** 65 /**
70 * Mock class that makes {@code Animal} concrete. 66 * Mock class that makes {@code Animal} concrete.
71 */ 67 */
72
73 private class MockAnimal extends Animal { 68 private class MockAnimal extends Animal {
74 69
75 /** 70 /**
@@ -77,7 +72,6 @@ public class AnimalTest extends TestCase {
77 * 72 *
78 * @param labyrinth Actual maze 73 * @param labyrinth Actual maze
79 */ 74 */
80
81 public MockAnimal(Vector2D position) { 75 public MockAnimal(Vector2D position) {
82 super(position); 76 super(position);
83 } 77 }
@@ -92,4 +86,5 @@ public class AnimalTest extends TestCase {
92 return null; 86 return null;
93 } 87 }
94 } 88 }
89
95} 90}