diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 7c54a54..b0d61a0 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,12 +4,13 @@
-
-
-
+
+
+
+
-
-
+
+
@@ -40,7 +41,7 @@
-
+
@@ -48,8 +49,19 @@
+
+
+
+
+
+
+
+
+
+
+
@@ -91,7 +103,14 @@
1615113169742
-
+
+ 1615149154381
+
+
+
+ 1615149154381
+
+
@@ -111,6 +130,7 @@
-
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 232a069..023cd42 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,5 +12,13 @@
15
15
+
+
+ org.junit.jupiter
+ junit-jupiter
+ 5.5.2
+ test
+
+
\ No newline at end of file
diff --git a/src/main/java/Map.java b/src/main/java/Map.java
index 5574388..0a78c55 100644
--- a/src/main/java/Map.java
+++ b/src/main/java/Map.java
@@ -38,7 +38,7 @@ public int getNbColonne() {
//lire le fichier map et creer un tableau 2d qui contient cette map
- public static char[][] readMap(String fileName) throws IOException {
+ public char[][] readMap(String fileName) throws IOException {
Path path = Paths.get(fileName);
List lignes = Files.readAllLines(path);
int n = lignes.size();
diff --git a/src/test/java/GameSystemTest.java b/src/test/java/GameSystemTest.java
new file mode 100644
index 0000000..b7eaaf1
--- /dev/null
+++ b/src/test/java/GameSystemTest.java
@@ -0,0 +1,17 @@
+import org.junit.jupiter.api.Test;
+
+public class GameSystemTest {
+
+
+ @Test
+ void userInputTest()
+ {
+
+ }
+
+ @Test
+ void playGameTest()
+ {
+
+ }
+}
diff --git a/src/test/java/MapTest.java b/src/test/java/MapTest.java
new file mode 100644
index 0000000..7b88577
--- /dev/null
+++ b/src/test/java/MapTest.java
@@ -0,0 +1,53 @@
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+
+import java.io.IOException;
+
+public class MapTest {
+
+
+ Map map =new Map("map1.txt",new Player());
+
+ public MapTest() throws IOException {
+ }
+
+
+ @Test
+ void readMapTest() throws IOException {
+ char[][] vect =map.readMap("maps/map1.txt") ;
+ int nbLine = vect.length;
+ int nbColonne = vect[0].length;
+
+ for (int i = 0; i < nbLine; i++) {
+ Assertions.assertEquals('#', vect[i][0]);
+ Assertions.assertEquals('#', vect[i][nbColonne-1]);
+ Assertions.assertEquals('#', vect[0][i]);
+ Assertions.assertEquals('#', vect[nbLine-1][i]);
+ }
+ }
+
+ @Test
+ void setPositionTest ()
+ {
+
+ }
+ @Test
+ void movePlayerTest()
+ {
+
+ }
+ @Test
+ void tryMovePlayerTest()
+ {
+
+ }
+ @Test
+ void getTileTest()
+ {
+
+ }
+
+
+
+
+}
diff --git a/src/test/java/PlayerTest.java b/src/test/java/PlayerTest.java
new file mode 100644
index 0000000..95eed82
--- /dev/null
+++ b/src/test/java/PlayerTest.java
@@ -0,0 +1,11 @@
+import org.junit.jupiter.api.Test;
+
+public class PlayerTest {
+
+
+
+ @Test
+ void setPositionTest(int x , int y )
+ {}
+
+}