diff --git a/src/main/java/fr/nancy/iut/Sphere.java b/src/main/java/fr/nancy/iut/Sphere.java index 164a55651fc4c17eae4a5ced5fd8b3afa74b50c9..8107e1bd4b0bc38ee7dacf85fe8054d2e7cf42ed 100644 --- a/src/main/java/fr/nancy/iut/Sphere.java +++ b/src/main/java/fr/nancy/iut/Sphere.java @@ -28,7 +28,7 @@ public class Sphere { // Methods // *********************************************************************** public double computeVolume() { - return 4 * Math.PI * Math.pow(radius_, 2) / 3; + return 4 * Math.PI * Math.pow(radius_, 3)/3; } public double distanceTo(Sphere other) { diff --git a/target/jacoco.exec b/target/jacoco.exec new file mode 100644 index 0000000000000000000000000000000000000000..3b14292585ce6f3223d012f9f76a44e6cfd6361f Binary files /dev/null and b/target/jacoco.exec 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 0000000000000000000000000000000000000000..d55ab2815fc39e3985d6a7ba08ffaaa44aec246c --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1 @@ +fr/nancy/iut/Sphere.class 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 0000000000000000000000000000000000000000..245be2f57423d5be44c6e02329ef239a845c3311 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1 @@ +/Users/arthur/Documents/GitHub/sphere/src/main/java/fr/nancy/iut/Sphere.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 0000000000000000000000000000000000000000..446c92b471d852d61d230c926da2b26083ceab78 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1 @@ +fr/nancy/iut/SphereTest.class 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 0000000000000000000000000000000000000000..fd1fb343f2a45c1a83a321e12fe3669c9a0b1698 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1 @@ +/Users/arthur/Documents/GitHub/sphere/src/test/java/fr/nancy/iut/SphereTest.java diff --git a/target/surefire-reports/TEST-fr.nancy.iut.SphereTest.xml b/target/surefire-reports/TEST-fr.nancy.iut.SphereTest.xml new file mode 100644 index 0000000000000000000000000000000000000000..91b35c13faadcb3cc6aa6363abe00e3cf44d6221 --- /dev/null +++ b/target/surefire-reports/TEST-fr.nancy.iut.SphereTest.xml @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuite tests="1" failures="0" name="fr.nancy.iut.SphereTest" time="0.017" errors="0" skipped="0"> + <properties> + <property name="idea.version" value="2022.3.1"/> + <property name="java.runtime.name" value="OpenJDK Runtime Environment"/> + <property name="java.vm.version" value="19.0.2+7-44"/> + <property name="sun.boot.library.path" value="/Users/arthur/Library/Java/JavaVirtualMachines/openjdk-19.0.2/Contents/Home/lib"/> + <property name="maven.multiModuleProjectDirectory" value="/Users/arthur/Documents/GitHub/sphere"/> + <property name="java.vm.vendor" value="Oracle Corporation"/> + <property name="java.vendor.url" value="https://java.oracle.com/"/> + <property name="guice.disable.misplaced.annotation.check" value="true"/> + <property name="path.separator" value=":"/> + <property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/> + <property name="user.country" value="FR"/> + <property name="sun.java.launcher" value="SUN_STANDARD"/> + <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> + <property name="user.dir" value="/Users/arthur/Documents/GitHub/sphere"/> + <property name="java.vm.compressedOopsMode" value="Zero based"/> + <property name="java.runtime.version" value="19.0.2+7-44"/> + <property name="os.arch" value="aarch64"/> + <property name="java.io.tmpdir" value="/var/folders/46/gfmnsrxs0ks781df9jfsh1fm0000gn/T/"/> + <property name="line.separator" value=" +"/> + <property name="java.vm.specification.vendor" value="Oracle Corporation"/> + <property name="stderr.encoding" value="UTF-8"/> + <property name="os.name" value="Mac OS X"/> + <property name="maven.ext.class.path" value="/Users/arthur/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/223.8214.52/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven-event-listener.jar"/> + <property name="classworlds.conf" value="/Users/arthur/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/223.8214.52/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/bin/m2.conf"/> + <property name="sun.jnu.encoding" value="UTF-8"/> + <property name="stdout.encoding" value="UTF-8"/> + <property name="java.library.path" value="/Users/arthur/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:."/> + <property name="jansi.passthrough" value="true"/> + <property name="maven.conf" value="/Users/arthur/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/223.8214.52/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/conf"/> + <property name="jdk.debug" value="release"/> + <property name="java.class.version" value="63.0"/> + <property name="java.specification.name" value="Java Platform API Specification"/> + <property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/> + <property name="os.version" value="13.1"/> + <property name="http.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/> + <property name="user.home" value="/Users/arthur"/> + <property name="user.timezone" value="Europe/Paris"/> + <property name="file.encoding" value="UTF-8"/> + <property name="java.specification.version" value="19"/> + <property name="user.name" value="arthur"/> + <property name="java.class.path" value="/Users/arthur/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/223.8214.52/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds.license:/Users/arthur/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/223.8214.52/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.6.0.jar"/> + <property name="java.vm.specification.version" value="19"/> + <property name="sun.arch.data.model" value="64"/> + <property name="sun.java.command" value="org.codehaus.classworlds.Launcher -Didea.version=2022.3.1 test"/> + <property name="java.home" value="/Users/arthur/Library/Java/JavaVirtualMachines/openjdk-19.0.2/Contents/Home"/> + <property name="apple.awt.application.name" value="Launcher"/> + <property name="user.language" value="fr"/> + <property name="java.specification.vendor" value="Oracle Corporation"/> + <property name="java.vm.info" value="mixed mode, sharing"/> + <property name="java.version" value="19.0.2"/> + <property name="native.encoding" value="UTF-8"/> + <property name="java.vendor" value="Oracle Corporation"/> + <property name="sun.stderr.encoding" value="UTF-8"/> + <property name="maven.home" value="/Users/arthur/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/223.8214.52/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3"/> + <property name="file.separator" value="/"/> + <property name="java.version.date" value="2023-01-17"/> + <property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/> + <property name="sun.io.unicode.encoding" value="UnicodeBig"/> + <property name="sun.cpu.endian" value="little"/> + <property name="sun.stdout.encoding" value="UTF-8"/> + <property name="socksNonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/> + <property name="ftp.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/> + </properties> + <testcase classname="fr.nancy.iut.SphereTest" name="fr.nancy.iut.SphereTest.testComputeVolume" time="0.017"/> +</testsuite> \ No newline at end of file diff --git a/target/surefire-reports/fr.nancy.iut.SphereTest.txt b/target/surefire-reports/fr.nancy.iut.SphereTest.txt new file mode 100644 index 0000000000000000000000000000000000000000..232bc86aa6e8e8203176365bead8bed16f761f6f --- /dev/null +++ b/target/surefire-reports/fr.nancy.iut.SphereTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: fr.nancy.iut.SphereTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec