add project
This commit is contained in:
commit
4a156236f6
12 changed files with 140 additions and 0 deletions
52
pom.xml
Normal file
52
pom.xml
Normal file
|
@ -0,0 +1,52 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>fr.insat.java</groupId>
|
||||
<artifactId>eval</artifactId>
|
||||
<version>24.6</version>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter</artifactId>
|
||||
<version>5.10.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build><pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>me.fabriciorby</groupId>
|
||||
<artifactId>maven-surefire-junit5-tree-reporter</artifactId>
|
||||
<version>1.2.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<reportFormat>plain</reportFormat>
|
||||
<consoleOutputReporter>
|
||||
<disable>true</disable>
|
||||
</consoleOutputReporter>
|
||||
<statelessTestsetInfoReporter
|
||||
implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter">
|
||||
</statelessTestsetInfoReporter>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
</project>
|
9
src/main/java/Point.java
Normal file
9
src/main/java/Point.java
Normal file
|
@ -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;
|
||||
}
|
||||
}
|
15
src/test/java/PointTest.java
Normal file
15
src/test/java/PointTest.java
Normal file
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
BIN
target/classes/Point.class
Normal file
BIN
target/classes/Point.class
Normal file
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
/home/el-ouali/Bureau/eval/src/main/java/Point.java
|
|
@ -0,0 +1 @@
|
|||
/home/el-ouali/Bureau/eval/src/test/java/PointTest.java
|
5
target/surefire-reports/PointTest.txt
Normal file
5
target/surefire-reports/PointTest.txt
Normal file
|
@ -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
|
56
target/surefire-reports/TEST-PointTest.xml
Normal file
56
target/surefire-reports/TEST-PointTest.xml
Normal file
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd" version="3.0" name="PointTest" time="0.042" tests="1" errors="0" skipped="0" failures="0">
|
||||
<properties>
|
||||
<property name="java.specification.version" value="17"/>
|
||||
<property name="sun.jnu.encoding" value="UTF-8"/>
|
||||
<property name="java.class.path" value="/home/el-ouali/Bureau/eval/target/test-classes:/home/el-ouali/Bureau/eval/target/classes:/home/el-ouali/.m2/repository/org/junit/jupiter/junit-jupiter/5.10.1/junit-jupiter-5.10.1.jar:/home/el-ouali/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.10.1/junit-jupiter-api-5.10.1.jar:/home/el-ouali/.m2/repository/org/opentest4j/opentest4j/1.3.0/opentest4j-1.3.0.jar:/home/el-ouali/.m2/repository/org/junit/platform/junit-platform-commons/1.10.1/junit-platform-commons-1.10.1.jar:/home/el-ouali/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar:/home/el-ouali/.m2/repository/org/junit/jupiter/junit-jupiter-params/5.10.1/junit-jupiter-params-5.10.1.jar:/home/el-ouali/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.10.1/junit-jupiter-engine-5.10.1.jar:/home/el-ouali/.m2/repository/org/junit/platform/junit-platform-engine/1.10.1/junit-platform-engine-1.10.1.jar:"/>
|
||||
<property name="java.vm.vendor" value="Private Build"/>
|
||||
<property name="sun.arch.data.model" value="64"/>
|
||||
<property name="java.vendor.url" value="Unknown"/>
|
||||
<property name="os.name" value="Linux"/>
|
||||
<property name="java.vm.specification.version" value="17"/>
|
||||
<property name="sun.java.launcher" value="SUN_STANDARD"/>
|
||||
<property name="user.country" value="FR"/>
|
||||
<property name="sun.boot.library.path" value="/usr/lib/jvm/java-17-openjdk-amd64/lib"/>
|
||||
<property name="sun.java.command" value="/home/el-ouali/Bureau/eval/target/surefire/surefirebooter-20240604003014183_3.jar /home/el-ouali/Bureau/eval/target/surefire 2024-06-04T00-30-13_715-jvmRun1 surefire-20240604003014183_1tmp surefire_0-20240604003014183_2tmp"/>
|
||||
<property name="jdk.debug" value="release"/>
|
||||
<property name="test" value="PointTest"/>
|
||||
<property name="surefire.test.class.path" value="/home/el-ouali/Bureau/eval/target/test-classes:/home/el-ouali/Bureau/eval/target/classes:/home/el-ouali/.m2/repository/org/junit/jupiter/junit-jupiter/5.10.1/junit-jupiter-5.10.1.jar:/home/el-ouali/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.10.1/junit-jupiter-api-5.10.1.jar:/home/el-ouali/.m2/repository/org/opentest4j/opentest4j/1.3.0/opentest4j-1.3.0.jar:/home/el-ouali/.m2/repository/org/junit/platform/junit-platform-commons/1.10.1/junit-platform-commons-1.10.1.jar:/home/el-ouali/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar:/home/el-ouali/.m2/repository/org/junit/jupiter/junit-jupiter-params/5.10.1/junit-jupiter-params-5.10.1.jar:/home/el-ouali/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.10.1/junit-jupiter-engine-5.10.1.jar:/home/el-ouali/.m2/repository/org/junit/platform/junit-platform-engine/1.10.1/junit-platform-engine-1.10.1.jar:"/>
|
||||
<property name="sun.cpu.endian" value="little"/>
|
||||
<property name="user.home" value="/home/el-ouali"/>
|
||||
<property name="user.language" value="fr"/>
|
||||
<property name="java.specification.vendor" value="Oracle Corporation"/>
|
||||
<property name="java.version.date" value="2024-01-16"/>
|
||||
<property name="java.home" value="/usr/lib/jvm/java-17-openjdk-amd64"/>
|
||||
<property name="file.separator" value="/"/>
|
||||
<property name="basedir" value="/home/el-ouali/Bureau/eval"/>
|
||||
<property name="java.vm.compressedOopsMode" value="Zero based"/>
|
||||
<property name="line.separator" value=" "/>
|
||||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
|
||||
<property name="java.specification.name" value="Java Platform API Specification"/>
|
||||
<property name="surefire.real.class.path" value="/home/el-ouali/Bureau/eval/target/surefire/surefirebooter-20240604003014183_3.jar"/>
|
||||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
|
||||
<property name="java.runtime.version" value="17.0.10+7-Ubuntu-122.04.1"/>
|
||||
<property name="user.name" value="el-ouali"/>
|
||||
<property name="path.separator" value=":"/>
|
||||
<property name="os.version" value="6.5.0-35-generic"/>
|
||||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/>
|
||||
<property name="file.encoding" value="UTF-8"/>
|
||||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/>
|
||||
<property name="localRepository" value="/home/el-ouali/.m2/repository"/>
|
||||
<property name="java.vendor.url.bug" value="Unknown"/>
|
||||
<property name="java.io.tmpdir" value="/tmp"/>
|
||||
<property name="java.version" value="17.0.10"/>
|
||||
<property name="user.dir" value="/home/el-ouali/Bureau/eval"/>
|
||||
<property name="os.arch" value="amd64"/>
|
||||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
|
||||
<property name="native.encoding" value="UTF-8"/>
|
||||
<property name="java.library.path" value="/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib"/>
|
||||
<property name="java.vm.info" value="mixed mode, sharing"/>
|
||||
<property name="java.vendor" value="Private Build"/>
|
||||
<property name="java.vm.version" value="17.0.10+7-Ubuntu-122.04.1"/>
|
||||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
|
||||
<property name="java.class.version" value="61.0"/>
|
||||
</properties>
|
||||
<testcase name="testCreation" classname="PointTest" time="0.023"/>
|
||||
</testsuite>
|
BIN
target/test-classes/PointTest.class
Normal file
BIN
target/test-classes/PointTest.class
Normal file
Binary file not shown.
1
texte déposé.txt
Normal file
1
texte déposé.txt
Normal file
|
@ -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
|
Loading…
Reference in a new issue