first commit

master
Ismail TAHA JANAN 2 years ago
commit 2fba8049d0

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/>
<classpathentry kind="output" path="bin"/>
</classpath>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>morpion</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

@ -0,0 +1,14 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=17

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,5 @@
package morpion;
public class Game {
}

@ -0,0 +1,15 @@
package morpion;
public class MorpionGrid {
private int[][] grid;
public MorpionGrid() {
grid = new int[3][3];
}
public int[][] getGrid() {
return grid;
}
}

@ -0,0 +1,10 @@
package morpion;
public class Player {
public Short getId() {
// TODO Auto-generated method stub
return null;
}
}

@ -0,0 +1,14 @@
package tests;
import org.junit.jupiter.api.Test;
import morpion.Game;
public class GameTest {
@Test
public void GameTestIns() {
}
}

@ -0,0 +1,25 @@
package tests;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import morpion.MorpionGrid;
public class MorpionGridTest {
MorpionGrid morpionGrid = new MorpionGrid();
@Test
public void testGrid() {
assertEquals(3, morpionGrid.getGrid().length );
for (int[] row : morpionGrid.getGrid()) {
assertEquals(3, row.length);
for (int col : row) {
assertEquals(0, col);
}
}
}
}

@ -0,0 +1,20 @@
package tests;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import morpion.Player;
public class PlayerTest {
Player p = new Player();
@Test
void testPlayerInfo() {
}
}
Loading…
Cancel
Save