Skip to content
Snippets Groups Projects
Commit c993a6cb authored by PIERRON Laurent's avatar PIERRON Laurent :man_in_tuxedo_tone1:
Browse files

jacoco does not test function, where name is not starting by 'test'. Fixing tests name

parent afd09e77
No related branches found
No related tags found
No related merge requests found
Pipeline #10715 passed
...@@ -20,7 +20,7 @@ public class SphereTest { ...@@ -20,7 +20,7 @@ public class SphereTest {
assertEquals(14,un.distanceSquaredTo(deux)); assertEquals(14,un.distanceSquaredTo(deux));
} }
@Test @Test
public void test_inContactWith(){ public void testInContactWith(){
Sphere un=new Sphere(1.5,new Point3d(new double[]{0,0,3})); Sphere un=new Sphere(1.5,new Point3d(new double[]{0,0,3}));
Sphere deux=new Sphere(1.5,new Point3d(new double[]{2,1,0})); Sphere deux=new Sphere(1.5,new Point3d(new double[]{2,1,0}));
Sphere trois=new Sphere(4,new Point3d(new double[]{0,0,3})); Sphere trois=new Sphere(4,new Point3d(new double[]{0,0,3}));
...@@ -34,7 +34,7 @@ public class SphereTest { ...@@ -34,7 +34,7 @@ public class SphereTest {
assertEquals(new Point3d(new double[]{0,0,0}),mySphere.getPos()); assertEquals(new Point3d(new double[]{0,0,0}),mySphere.getPos());
} }
@Test @Test
public void testgetRadius(){ public void testGetRadius(){
Sphere deux=new Sphere(1.5,new Point3d(new double[]{2,1,0})); Sphere deux=new Sphere(1.5,new Point3d(new double[]{2,1,0}));
Sphere trois=new Sphere(4,new Point3d(new double[]{0,0,3})); Sphere trois=new Sphere(4,new Point3d(new double[]{0,0,3}));
assertEquals(1.5,deux.getRadius()); assertEquals(1.5,deux.getRadius());
...@@ -46,7 +46,7 @@ public class SphereTest { ...@@ -46,7 +46,7 @@ public class SphereTest {
assertEquals(Math.sqrt(14.0),deux.distanceTo(trois)); assertEquals(Math.sqrt(14.0),deux.distanceTo(trois));
} }
@Test @Test
public void TestConstructeurParam(){ public void testConstructeurParam(){
Sphere deux=new Sphere(1.5,new Point3d(new double[]{2,1,0})); Sphere deux=new Sphere(1.5,new Point3d(new double[]{2,1,0}));
Sphere trois=new Sphere(4,new Point3d()); Sphere trois=new Sphere(4,new Point3d());
Sphere un=new Sphere(8); Sphere un=new Sphere(8);
...@@ -59,7 +59,7 @@ public class SphereTest { ...@@ -59,7 +59,7 @@ public class SphereTest {
} }
@Test @Test
public void ConstructeurSansParam(){ public void testConstructeurSansParam(){
Sphere quatre =new Sphere(); Sphere quatre =new Sphere();
//assertEquals(new Point3d(), quatre.getPos()); //assertEquals(new Point3d(), quatre.getPos());
assertEquals(0.0, quatre.getRadius(),0.0); assertEquals(0.0, quatre.getRadius(),0.0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment