commit 4a156236f6bb101de114dcb242d30398d4b8a2dc Author: El-Ouali Abderrahman Date: Tue Jun 4 17:26:05 2024 +0200 add project diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..3c525ea --- /dev/null +++ b/pom.xml @@ -0,0 +1,52 @@ + + + 4.0.0 + + fr.insat.java + eval + 24.6 + + + 17 + 17 + UTF-8 + + + + + org.junit.jupiter + junit-jupiter + 5.10.1 + test + + + + + + + maven-surefire-plugin + 3.1.0 + + + me.fabriciorby + maven-surefire-junit5-tree-reporter + 1.2.1 + + + + plain + + true + + + + + + + + + + diff --git a/src/main/java/Point.java b/src/main/java/Point.java new file mode 100644 index 0000000..6fa4bf7 --- /dev/null +++ b/src/main/java/Point.java @@ -0,0 +1,9 @@ +public class Point { + public int x; + public int y; + + public Point(int x, int y) { + this.x = x; + this.y = y; + } +} diff --git a/src/test/java/PointTest.java b/src/test/java/PointTest.java new file mode 100644 index 0000000..ab7be45 --- /dev/null +++ b/src/test/java/PointTest.java @@ -0,0 +1,15 @@ +import org.junit.jupiter.api.Test; + +import java.util.Arrays; + +public class PointTest { + + @Test + public void testCreation() { + Point p = new Point(3, 4); + assert p.x == 3; + assert p.y == 4; + } + + +} diff --git a/target/classes/Point.class b/target/classes/Point.class new file mode 100644 index 0000000..a2333f1 Binary files /dev/null and b/target/classes/Point.class differ diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..72bfef9 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1 @@ +/home/el-ouali/Bureau/eval/src/main/java/Point.java diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..960b58c --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1 @@ +/home/el-ouali/Bureau/eval/src/test/java/PointTest.java diff --git a/target/surefire-reports/PointTest.txt b/target/surefire-reports/PointTest.txt new file mode 100644 index 0000000..917669a --- /dev/null +++ b/target/surefire-reports/PointTest.txt @@ -0,0 +1,5 @@ +------------------------------------------------------------------------------- +Test set: PointTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.042 s - in PointTest +PointTest.testCreation Time elapsed: 0.023 s diff --git a/target/surefire-reports/TEST-PointTest.xml b/target/surefire-reports/TEST-PointTest.xml new file mode 100644 index 0000000..f2072af --- /dev/null +++ b/target/surefire-reports/TEST-PointTest.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/test-classes/PointTest.class b/target/test-classes/PointTest.class new file mode 100644 index 0000000..db01e58 Binary files /dev/null and b/target/test-classes/PointTest.class differ diff --git a/texte déposé.txt b/texte déposé.txt new file mode 100644 index 0000000..d050d9d --- /dev/null +++ b/texte déposé.txt @@ -0,0 +1 @@ +wget https://dlcdn.apache.org/maven/maven-3/3.9.5/binaries/apache-maven-3.9.5-bin.tar.gz -O maven.tar.gz # download maven \ No newline at end of file