testy mutacyjne

This commit is contained in:
Asiek 2022-06-21 20:39:10 +02:00
commit c270120d63
30 changed files with 15475 additions and 0 deletions

View File

@ -0,0 +1,112 @@
package com.epam.bootcamp.bmi_calculator;
import static org.junit.Assert.*;
import org.junit.*;
import org.junit.rules.ExpectedException;
import com.epam.bootcamp.bmi_calculator.interfacesImplements.MetricBMI;
public class
BMITest {
App app;
/*@Test
public void GuessTheUnitsTest1() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(1.7,50.0);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest2() throws Exception{
}*/
@Before
public void setup(){
app = new App();
}
@Test
public void BMITest1() throws Exception{
app.setHeight(1.7);
app.setWeight(50);
assertEquals(app.calculateBMI(),17.3,1);
assertEquals(app.bmiResult(),"Thinness");
}
@Test
public void BMITest2() throws Exception{
try{
app.setHeight(0);
app.setWeight(50.0);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Height is equals or less than zero.");
}
}
@Test
public void BMITest3() throws Exception{
try{
app.setHeight(1);
app.setWeight(-3);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Weight is equals or less than zero.");
}
}
@Test
public void BMITest4() throws Exception{
try{
app.setHeight(170);
app.setWeight(1764);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Height and weight is in different metric.");
}
}
@Test
public void BMITest5() throws Exception{
app.setHeight(170);
app.setWeight(50.0);
assertEquals(app.calculateBMI(),17.3,1);
assertEquals(app.bmiResult(),"Thinness");
}
@Test
public void BMITest6() throws Exception{
app.setHeight(5.58);
app.setWeight(1764);
assertEquals(app.calculateBMI(),17.3,1);
assertEquals(app.bmiResult(),"Thinness");
}
@Test
public void BMITest7() throws Exception{
app.setHeight(86.7);
app.setWeight(6349.3);
assertEquals(app.calculateBMI(),37.19,0.5);
assertEquals(app.bmiResult(),"Heavily overweight");
}
@Test
public void BMITest8() throws Exception{
app.setHeight(6.56);
app.setWeight(220.47);
assertEquals(app.calculateBMI(),25,0.5);
assertEquals(app.bmiResult(),"Overweight");
}
@Test
public void BMITest9() throws Exception{
app.setHeight(200);
app.setWeight(80);
assertEquals(app.calculateBMI(),20,0.0);
assertEquals(app.bmiResult(),"Normal");
}
}

View File

@ -0,0 +1,38 @@
package com.epam.bootcamp.bmi_calculator;
import static org.junit.Assert.*;
import org.junit.*;
public class GuessTheUnitsTest {
@Test
public void GuessTheUnitsTest1() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(1.7,50.0);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest2() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(170,50.0);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest3() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(5.58,1764);
assertEquals(gtu.getUnitType(),"US");
assertEquals(gtu.getWeight(),110,1);
}
@Test
public void GuessTheUnitsTest4() throws Exception{
try{
GuessTheUnits gtu = new GuessTheUnits(170,1764);
assertEquals(gtu.getUnitType(),"US");
}catch(Exception e){
assertEquals(e.getMessage(),"Height and weight is in different metric.");
}
}
}

View File

@ -0,0 +1,345 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>MetricBMI.java</h1>
<table class="src">
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_1'/>
1
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_1'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>package com.epam.bootcamp.bmi_calculator.interfacesImplements;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_2'/>
2
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_2'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_3'/>
3
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_3'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>import com.epam.bootcamp.bmi_calculator.interfaces.UnitsInterface;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_4'/>
4
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_4'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_5'/>
5
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_5'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''>public class MetricBMI implements UnitsInterface{</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_6'/>
6
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_6'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_7'/>
7
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_7'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;private double bmi;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_8'/>
8
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_8'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_9'/>
9
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_9'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;public double getBMI(){</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_10'/>
10
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_10'>1</a>
<span>
1. getBMI : replaced double return with 0.0d for com/epam/bootcamp/bmi_calculator/interfacesImplements/MetricBMI::getBMI &rarr; KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'>&#9;&#9;return this.bmi;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_11'/>
11
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_11'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;}</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_12'/>
12
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_12'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_13'/>
13
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_13'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;public void setBMI(double weight, double height){</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_14'/>
14
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_14'>2</a>
<span>
1. setBMI : Replaced double multiplication with division &rarr; KILLED<br/>
2. setBMI : Replaced double division with multiplication &rarr; KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'>&#9;&#9;this.bmi = weight/(height*height); //sz&#225;molja a metrikus BMI-t</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_15'/>
15
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_15'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''>&#9;}</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_16'/>
16
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_16'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@34d9df9f_17'/>
17
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_17'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>}</span></pre></td></tr>
<tr><td></td><td></td><td><h2>Mutations</h2></td></tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@34d9df9f_10'>10</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_10'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>getBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest5(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> replaced double return with 0.0d for com/epam/bootcamp/bmi_calculator/interfacesImplements/MetricBMI::getBMI &rarr; KILLED</p>
</td>
</tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@34d9df9f_14'>14</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@34d9df9f_14'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest5(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double multiplication with division &rarr; KILLED</p> <p class='KILLED'><span class='pop'>2.<span><b>2</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest5(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double division with multiplication &rarr; KILLED</p>
</td>
</tr>
</table>
<h2>Active mutators</h2>
<ul>
<li class='mutator'>CONDITIONALS_BOUNDARY</li>
<li class='mutator'>EMPTY_RETURNS</li>
<li class='mutator'>FALSE_RETURNS</li>
<li class='mutator'>INCREMENTS</li>
<li class='mutator'>INVERT_NEGS</li>
<li class='mutator'>MATH</li>
<li class='mutator'>NEGATE_CONDITIONALS</li>
<li class='mutator'>NULL_RETURNS</li>
<li class='mutator'>PRIMITIVE_RETURNS</li>
<li class='mutator'>TRUE_RETURNS</li>
<li class='mutator'>VOID_METHOD_CALLS</li>
</ul>
<h2>Tests examined</h2>
<ul>
<li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest1(com.epam.bootcamp.bmi_calculator.BMITest) (26 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest5(com.epam.bootcamp.bmi_calculator.BMITest) (1 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest9(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li>
</ul>
<br/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

View File

@ -0,0 +1,422 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>UsBMI.java</h1>
<table class="src">
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_1'/>
1
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_1'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>package com.epam.bootcamp.bmi_calculator.interfacesImplements;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_2'/>
2
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_2'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_3'/>
3
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_3'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>import com.epam.bootcamp.bmi_calculator.interfaces.UnitsInterface;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_4'/>
4
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_4'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_5'/>
5
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_5'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''>public class UsBMI implements UnitsInterface{</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_6'/>
6
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_6'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_7'/>
7
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_7'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;private static final int usMultiplier = 703;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_8'/>
8
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_8'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_9'/>
9
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_9'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;private double bmi;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_10'/>
10
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_10'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_11'/>
11
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_11'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;public double getBMI(){</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_12'/>
12
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_12'>1</a>
<span>
1. getBMI : replaced double return with 0.0d for com/epam/bootcamp/bmi_calculator/interfacesImplements/UsBMI::getBMI &rarr; KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'>&#9;&#9;return this.bmi;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_13'/>
13
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_13'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;}</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_14'/>
14
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_14'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_15'/>
15
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_15'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;/**</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_16'/>
16
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_16'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9; * A US m&#233;rt&#233;kegys&#233;gn&#233;l kell konstans, amilve meg kell szorozni a s&#250;lyt. Ezt a szorz&#243;t a usMultiplier konstans tartalmazza</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_17'/>
17
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_17'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9; */</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_18'/>
18
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_18'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;public void setBMI(double weight, double height){</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_19'/>
19
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_19'>3</a>
<span>
1. setBMI : Replaced double multiplication with division &rarr; KILLED<br/>
2. setBMI : Replaced double multiplication with division &rarr; KILLED<br/>
3. setBMI : Replaced double division with multiplication &rarr; KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'>&#9;&#9;this.bmi = usMultiplier*weight/(height*height); // sz&#225;molja a US bmi-t</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_20'/>
20
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_20'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''>&#9;}</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_21'/>
21
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_21'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@43c39321_22'/>
22
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_22'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>}</span></pre></td></tr>
<tr><td></td><td></td><td><h2>Mutations</h2></td></tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@43c39321_12'>12</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_12'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>getBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest7(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> replaced double return with 0.0d for com/epam/bootcamp/bmi_calculator/interfacesImplements/UsBMI::getBMI &rarr; KILLED</p>
</td>
</tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@43c39321_19'>19</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@43c39321_19'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest7(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double multiplication with division &rarr; KILLED</p> <p class='KILLED'><span class='pop'>2.<span><b>2</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest7(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double multiplication with division &rarr; KILLED</p> <p class='KILLED'><span class='pop'>3.<span><b>3</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest7(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double division with multiplication &rarr; KILLED</p>
</td>
</tr>
</table>
<h2>Active mutators</h2>
<ul>
<li class='mutator'>CONDITIONALS_BOUNDARY</li>
<li class='mutator'>EMPTY_RETURNS</li>
<li class='mutator'>FALSE_RETURNS</li>
<li class='mutator'>INCREMENTS</li>
<li class='mutator'>INVERT_NEGS</li>
<li class='mutator'>MATH</li>
<li class='mutator'>NEGATE_CONDITIONALS</li>
<li class='mutator'>NULL_RETURNS</li>
<li class='mutator'>PRIMITIVE_RETURNS</li>
<li class='mutator'>TRUE_RETURNS</li>
<li class='mutator'>VOID_METHOD_CALLS</li>
</ul>
<h2>Tests examined</h2>
<ul>
<li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest7(com.epam.bootcamp.bmi_calculator.BMITest) (1 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest8(com.epam.bootcamp.bmi_calculator.BMITest) (14 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest6(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li>
</ul>
<br/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

View File

@ -0,0 +1,69 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>Pit Test Coverage Report</h1>
<h2>Package Summary</h2>
<h3>com.epam.bootcamp.bmi_calculator.interfacesImplements</h3>
<table>
<thead>
<tr>
<th>Number of Classes</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">8/8</div></div></td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">7/7</div></div></td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">7/7</div></div></td>
</tr>
</tbody>
</table>
<h3>Breakdown by Class</h3>
<table>
<thead>
<tr>
<th>Name</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="./MetricBMI.java.html">MetricBMI.java</a></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">4/4</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">3/3</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">3/3</div></div></td>
</tr>
<tr>
<td><a href="./UsBMI.java.html">UsBMI.java</a></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">4/4</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">4/4</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">4/4</div></div></td>
</tr>
</tbody>
</table>
<br/>
<hr/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,69 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>Pit Test Coverage Report</h1>
<h2>Package Summary</h2>
<h3>com.epam.bootcamp.bmi_calculator</h3>
<table>
<thead>
<tr>
<th>Number of Classes</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">58/58</div></div></td>
<td>72% <div class="coverage_bar"><div class="coverage_complete width-72"></div><div class="coverage_legend">36/50</div></div></td>
<td>72% <div class="coverage_bar"><div class="coverage_complete width-72"></div><div class="coverage_legend">36/50</div></div></td>
</tr>
</tbody>
</table>
<h3>Breakdown by Class</h3>
<table>
<thead>
<tr>
<th>Name</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="./App.java.html">App.java</a></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">28/28</div></div></td>
<td><div class="coverage_percentage">67% </div><div class="coverage_bar"><div class="coverage_complete width-67"></div><div class="coverage_legend">16/24</div></div></td>
<td><div class="coverage_percentage">67% </div><div class="coverage_bar"><div class="coverage_complete width-67"></div><div class="coverage_legend">16/24</div></div></td>
</tr>
<tr>
<td><a href="./GuessTheUnits.java.html">GuessTheUnits.java</a></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">30/30</div></div></td>
<td><div class="coverage_percentage">77% </div><div class="coverage_bar"><div class="coverage_complete width-77"></div><div class="coverage_legend">20/26</div></div></td>
<td><div class="coverage_percentage">77% </div><div class="coverage_bar"><div class="coverage_complete width-77"></div><div class="coverage_legend">20/26</div></div></td>
</tr>
</tbody>
</table>
<br/>
<hr/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

View File

@ -0,0 +1,72 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Pit Test Coverage Report</h1>
<h3>Project Summary</h3>
<table>
<thead>
<tr>
<th>Number of Classes</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td>4</td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">66/66</div></div></td>
<td>75% <div class="coverage_bar"><div class="coverage_complete width-75"></div><div class="coverage_legend">43/57</div></div></td>
<td>75% <div class="coverage_bar"><div class="coverage_complete width-75"></div><div class="coverage_legend">43/57</div></div></td>
</tr>
</tbody>
</table>
<h3>Breakdown by Package</h3>
<table>
<thead>
<tr>
<th>Name</th>
<th>Number of Classes</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="./com.epam.bootcamp.bmi_calculator/index.html">com.epam.bootcamp.bmi_calculator</a></td>
<td>2</td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">58/58</div></div></td>
<td><div class="coverage_percentage">72% </div><div class="coverage_bar"><div class="coverage_complete width-72"></div><div class="coverage_legend">36/50</div></div></td>
<td><div class="coverage_percentage">72% </div><div class="coverage_bar"><div class="coverage_complete width-72"></div><div class="coverage_legend">36/50</div></div></td>
</tr>
<tr>
<td><a href="./com.epam.bootcamp.bmi_calculator.interfacesImplements/index.html">com.epam.bootcamp.bmi_calculator.interfacesImplements</a></td>
<td>2</td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">8/8</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">7/7</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">7/7</div></div></td>
</tr>
</tbody>
</table>
<br/>
<hr/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

View File

@ -0,0 +1,563 @@
html, body, div, span, p, blockquote, pre {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body{
line-height: 1;
color: black;
background: white;
margin-left: 20px;
}
.src {
border: 1px solid #dddddd;
padding-top: 10px;
padding-right: 5px;
padding-left: 5px;
font-family: Consolas, Courier, monospace;
}
.covered, .COVERED {
background-color: #ddffdd;
}
.uncovered, .UNCOVERED {
background-color: #ffdddd;
}
.killed, .KILLED {
background-color: #aaffaa;
}
.survived, .SURVIVED {
background-color: #ffaaaa;
}
.uncertain, .UNCERTAIN {
background-color: #dde7ef;
}
.run_error, .RUN_ERROR {
background-color: #dde7ef;
}
.na {
background-color: #eeeeee;
}
.timed_out, .TIMED_OUT {
background-color: #dde7ef;
}
.non_viable, .NON_VIABLE {
background-color: #aaffaa;
}
.memory_error, .MEMORY_ERROR {
background-color: #dde7ef;
}
.not_started, .NO_STARTED {
background-color: #dde7ef; color : red
}
.no_coverage, .NO_COVERAGE {
background-color: #ffaaaa;
}
.tests {
width: 50%;
float: left;
}
.mutees {
float: right;
width: 50%;
}
.unit {
padding-top: 20px;
clear: both;
}
.coverage_bar {
display: inline-block;
height: 1.1em;
width: 130px;
background: #FAA;
margin: 0 5px;
vertical-align: middle;
border: 1px solid #AAA;
position: relative;
}
.coverage_complete {
display: inline-block;
height: 100%;
background: #DFD;
float: left;
}
.coverage_legend {
position: absolute;
height: 100%;
width: 100%;
left: 0;
top: 0;
text-align: center;
}
.line, .mut {
vertical-align: middle;
}
.coverage_percentage {
display: inline-block;
width: 3em;
text-align: right;
}
.pop {
outline:none;
}
.pop strong {
line-height: 30px;
}
.pop {
text-decoration: none;
}
.pop span {
z-index: 10;
display: none;
padding: 14px 20px;
margin-top: -30px;
margin-left: 28px;
width: 800px;
line-height: 16px;
word-wrap: break-word;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-moz-box-shadow: 5px 5px 8px #CCC;
-webkit-box-shadow: 5px 5px 8px #CCC;
box-shadow: 5px 5px 8px #CCC;
}
.pop:hover span {
display: inline;
position: absolute;
color: #111;
border: 1px solid #DCA;
background: #fffAF0;
}
.width-1 {
width: 1%;
}
.width-2 {
width: 2%;
}
.width-3 {
width: 3%;
}
.width-4 {
width: 4%;
}
.width-5 {
width: 5%;
}
.width-6 {
width: 6%;
}
.width-7 {
width: 7%;
}
.width-8 {
width: 8%;
}
.width-9 {
width: 9%;
}
.width-10 {
width: 10%;
}
.width-11 {
width: 11%;
}
.width-12 {
width: 12%;
}
.width-13 {
width: 13%;
}
.width-14 {
width: 14%;
}
.width-15 {
width: 15%;
}
.width-16 {
width: 16%;
}
.width-17 {
width: 17%;
}
.width-18 {
width: 18%;
}
.width-19 {
width: 19%;
}
.width-20 {
width: 20%;
}
.width-21 {
width: 21%;
}
.width-22 {
width: 22%;
}
.width-23 {
width: 23%;
}
.width-24 {
width: 24%;
}
.width-25 {
width: 25%;
}
.width-26 {
width: 26%;
}
.width-27 {
width: 27%;
}
.width-28 {
width: 28%;
}
.width-29 {
width: 29%;
}
.width-30 {
width: 30%;
}
.width-31 {
width: 31%;
}
.width-32 {
width: 32%;
}
.width-33 {
width: 33%;
}
.width-34 {
width: 34%;
}
.width-35 {
width: 35%;
}
.width-36 {
width: 36%;
}
.width-37 {
width: 37%;
}
.width-38 {
width: 38%;
}
.width-39 {
width: 39%;
}
.width-40 {
width: 40%;
}
.width-41 {
width: 41%;
}
.width-42 {
width: 42%;
}
.width-43 {
width: 43%;
}
.width-44 {
width: 44%;
}
.width-45 {
width: 45%;
}
.width-46 {
width: 46%;
}
.width-47 {
width: 47%;
}
.width-48 {
width: 48%;
}
.width-49 {
width: 49%;
}
.width-50 {
width: 50%;
}
.width-51 {
width: 51%;
}
.width-52 {
width: 52%;
}
.width-53 {
width: 53%;
}
.width-54 {
width: 54%;
}
.width-55 {
width: 55%;
}
.width-56 {
width: 56%;
}
.width-57 {
width: 57%;
}
.width-58 {
width: 58%;
}
.width-59 {
width: 59%;
}
.width-60 {
width: 60%;
}
.width-61 {
width: 61%;
}
.width-62 {
width: 62%;
}
.width-63 {
width: 63%;
}
.width-64 {
width: 64%;
}
.width-65 {
width: 65%;
}
.width-66 {
width: 66%;
}
.width-67 {
width: 67%;
}
.width-68 {
width: 68%;
}
.width-69 {
width: 69%;
}
.width-70 {
width: 70%;
}
.width-71 {
width: 71%;
}
.width-72 {
width: 72%;
}
.width-73 {
width: 73%;
}
.width-74 {
width: 74%;
}
.width-75 {
width: 75%;
}
.width-76 {
width: 76%;
}
.width-77 {
width: 77%;
}
.width-78 {
width: 78%;
}
.width-79 {
width: 79%;
}
.width-80 {
width: 80%;
}
.width-81 {
width: 81%;
}
.width-82 {
width: 82%;
}
.width-83 {
width: 83%;
}
.width-84 {
width: 84%;
}
.width-85 {
width: 85%;
}
.width-86 {
width: 86%;
}
.width-87 {
width: 87%;
}
.width-88 {
width: 88%;
}
.width-89 {
width: 89%;
}
.width-90 {
width: 90%;
}
.width-91 {
width: 91%;
}
.width-92 {
width: 92%;
}
.width-93 {
width: 93%;
}
.width-94 {
width: 94%;
}
.width-95 {
width: 95%;
}
.width-96 {
width: 96%;
}
.width-97 {
width: 97%;
}
.width-98 {
width: 98%;
}
.width-99 {
width: 99%;
}
.width-100 {
width: 100%;
}

View File

@ -0,0 +1,207 @@
package com.epam.bootcamp.bmi_calculator;
import static org.junit.Assert.*;
import org.junit.*;
import org.junit.rules.ExpectedException;
import com.epam.bootcamp.bmi_calculator.interfacesImplements.MetricBMI;
public class
BMITest {
App app;
/*@Test
public void GuessTheUnitsTest1() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(1.7,50.0);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest2() throws Exception{
}*/
@Before
public void setup(){
app = new App();
}
@Test
public void BMITest1() throws Exception{
app.setHeight(1.7);
app.setWeight(50);
assertEquals(app.calculateBMI(),17.3,1);
assertEquals(app.bmiResult(),"Thinness");
}
@Test
public void BMITest2() throws Exception{
try{
app.setHeight(0);
app.setWeight(50.0);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Height is equals or less than zero.");
}
}
@Test
public void BMITest3() throws Exception{
try{
app.setHeight(1);
app.setWeight(-3);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Weight is equals or less than zero.");
}
}
@Test
public void BMITest4() throws Exception{
try{
app.setHeight(170);
app.setWeight(1764);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Height and weight is in different metric.");
}
}
@Test
public void BMITest5() throws Exception{
app.setHeight(170);
app.setWeight(50.0);
assertEquals(app.calculateBMI(),17.3,1);
assertEquals(app.bmiResult(),"Thinness");
}
@Test
public void BMITest6() throws Exception{
app.setHeight(5.58);
app.setWeight(1764);
assertEquals(app.calculateBMI(),17.3,1);
assertEquals(app.bmiResult(),"Thinness");
}
@Test
public void BMITest7() throws Exception{
app.setHeight(86.7);
app.setWeight(6349.3);
assertEquals(app.calculateBMI(),37.19,0.5);
assertEquals(app.bmiResult(),"Heavily overweight");
}
@Test
public void BMITest8() throws Exception{
app.setHeight(6.56);
app.setWeight(220.47);
assertEquals(app.calculateBMI(),25,0.5);
assertEquals(app.bmiResult(),"Overweight");
}
@Test
public void BMITest9() throws Exception{
app.setHeight(200);
app.setWeight(80);
assertEquals(app.calculateBMI(),20,0.0);
assertEquals(app.bmiResult(),"Normal");
}
@Test
public void BMITest10() throws Exception{
try{
app.setHeight(1);
app.setWeight(0);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Weight is equals or less than zero.");
}
}
@Test
public void BMITest11() throws Exception{
try{
app.setHeight(0);
app.setWeight(0);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Weight is equals or less than zero.");
}
}
@Test
public void BMITest12() throws Exception{
app.setHeight(5.5);
app.setWeight(115);
assertEquals(app.calculateBMI(),18.55945821854913,0.0);
assertEquals(app.bmiResult(),"Normal");
}
@Test
public void BMITest13() throws Exception{
app.setHeight(5.58);
app.setWeight(110.25);
assertEquals(app.calculateBMI(),17.3,1);
assertEquals(app.bmiResult(),"Thinness");
}
@Test
public void BMITest14() throws Exception {
app.setHeight(65);
app.setWeight(149.5);
assertEquals(app.calculateBMI(), 24.875384615384615, 0.0);
assertEquals(app.bmiResult(), "Normal");
}
@Test
public void BMITest15() throws Exception {
app.setHeight(65);
app.setWeight(1780);
assertEquals(app.calculateBMI(), 18.51094674556213, 0.0);
assertEquals(app.bmiResult(), "Normal");
}
@Test
public void BMITest16() throws Exception{
app.setHeight(6.4);
app.setWeight(252);
assertEquals(app.calculateBMI(),30.035400390624993,0.5);
assertEquals(app.bmiResult(),"Heavily overweight");
}
@Test
public void BMITest17() throws Exception {
app.setHeight(65);
app.setWeight(1770);
assertEquals(app.calculateBMI(), 18.406952662721892, 0.0);
assertEquals(app.bmiResult(), "Thinness");
}
@Test
public void BMITest18() throws Exception{
app.setHeight(1.93);
app.setWeight(92.8);
assertEquals(app.calculateBMI(),24.91342049450992,0.0);
assertEquals(app.bmiResult(),"Overweight");
}
@Test
public void BMITest19() throws Exception{
app.setHeight(1.93);
app.setWeight(111.3);
assertEquals(app.calculateBMI(),29.879996778437004,0.0);
assertEquals(app.bmiResult(),"Overweight");
}
@Test
public void BMITest20() throws Exception{
try{
app.setHeight(-4);
app.setWeight(50.0);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Height is equals or less than zero.");
}
}
}

View File

@ -0,0 +1,90 @@
package com.epam.bootcamp.bmi_calculator;
import static org.junit.Assert.*;
import org.junit.*;
public class GuessTheUnitsTest {
@Test
public void GuessTheUnitsTest1() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(1.7,50.0);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest2() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(170,50.0);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest3() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(5.58,1764);
assertEquals(gtu.getUnitType(),"US");
assertEquals(gtu.getWeight(),110,1);
}
@Test
public void GuessTheUnitsTest4() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(65,2000);
assertEquals(gtu.getUnitType(),"US");
assertEquals(gtu.getWeight(),125,1);
}
@Test
public void GuessTheUnitsTest5() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(100,1000);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest6() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(9.9,3.01);
assertEquals(gtu.getUnitType(),"US");
assertEquals(gtu.getWeight(),3.01,1);
}
@Test
public void GuessTheUnitsTest11() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(10,3.01);
assertEquals(gtu.getUnitType(),"US");
assertEquals(gtu.getWeight(),3.01,1);
}
@Test
public void GuessTheUnitsTest7() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(2.99,1000);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest8() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(3,1000);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest9() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(99.9,1000.1);
assertEquals(gtu.getUnitType(),"US");
assertEquals(gtu.getWeight(),62.50625,0.01);
}
@Test
public void GuessTheUnitsTest10() throws Exception{
try{
GuessTheUnits gtu = new GuessTheUnits(170,1764);
assertEquals(gtu.getUnitType(),"US");
}catch(Exception e){
assertEquals(e.getMessage(),"Height and weight is in different metric.");
}
}
}

View File

@ -0,0 +1,345 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>MetricBMI.java</h1>
<table class="src">
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_1'/>
1
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_1'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>package com.epam.bootcamp.bmi_calculator.interfacesImplements;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_2'/>
2
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_2'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_3'/>
3
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_3'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>import com.epam.bootcamp.bmi_calculator.interfaces.UnitsInterface;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_4'/>
4
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_4'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_5'/>
5
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_5'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''>public class MetricBMI implements UnitsInterface{</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_6'/>
6
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_6'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_7'/>
7
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_7'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;private double bmi;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_8'/>
8
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_8'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_9'/>
9
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_9'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;public double getBMI(){</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_10'/>
10
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_10'>1</a>
<span>
1. getBMI : replaced double return with 0.0d for com/epam/bootcamp/bmi_calculator/interfacesImplements/MetricBMI::getBMI &rarr; KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'>&#9;&#9;return this.bmi;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_11'/>
11
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_11'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;}</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_12'/>
12
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_12'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_13'/>
13
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_13'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;public void setBMI(double weight, double height){</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_14'/>
14
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_14'>2</a>
<span>
1. setBMI : Replaced double multiplication with division &rarr; KILLED<br/>
2. setBMI : Replaced double division with multiplication &rarr; KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'>&#9;&#9;this.bmi = weight/(height*height); //sz&#225;molja a metrikus BMI-t</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_15'/>
15
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_15'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''>&#9;}</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_16'/>
16
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_16'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@658e7ead_17'/>
17
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_17'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>}</span></pre></td></tr>
<tr><td></td><td></td><td><h2>Mutations</h2></td></tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@658e7ead_10'>10</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_10'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>getBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest19(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> replaced double return with 0.0d for com/epam/bootcamp/bmi_calculator/interfacesImplements/MetricBMI::getBMI &rarr; KILLED</p>
</td>
</tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@658e7ead_14'>14</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@658e7ead_14'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest19(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double multiplication with division &rarr; KILLED</p> <p class='KILLED'><span class='pop'>2.<span><b>2</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest19(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double division with multiplication &rarr; KILLED</p>
</td>
</tr>
</table>
<h2>Active mutators</h2>
<ul>
<li class='mutator'>CONDITIONALS_BOUNDARY</li>
<li class='mutator'>EMPTY_RETURNS</li>
<li class='mutator'>FALSE_RETURNS</li>
<li class='mutator'>INCREMENTS</li>
<li class='mutator'>INVERT_NEGS</li>
<li class='mutator'>MATH</li>
<li class='mutator'>NEGATE_CONDITIONALS</li>
<li class='mutator'>NULL_RETURNS</li>
<li class='mutator'>PRIMITIVE_RETURNS</li>
<li class='mutator'>TRUE_RETURNS</li>
<li class='mutator'>VOID_METHOD_CALLS</li>
</ul>
<h2>Tests examined</h2>
<ul>
<li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest19(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest1(com.epam.bootcamp.bmi_calculator.BMITest) (20 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest5(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest9(com.epam.bootcamp.bmi_calculator.BMITest) (5 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest18(com.epam.bootcamp.bmi_calculator.BMITest) (3 ms)</li>
</ul>
<br/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

View File

@ -0,0 +1,422 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>UsBMI.java</h1>
<table class="src">
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_1'/>
1
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_1'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>package com.epam.bootcamp.bmi_calculator.interfacesImplements;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_2'/>
2
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_2'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_3'/>
3
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_3'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>import com.epam.bootcamp.bmi_calculator.interfaces.UnitsInterface;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_4'/>
4
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_4'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_5'/>
5
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_5'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''>public class UsBMI implements UnitsInterface{</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_6'/>
6
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_6'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_7'/>
7
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_7'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;private static final int usMultiplier = 703;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_8'/>
8
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_8'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_9'/>
9
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_9'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;private double bmi;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_10'/>
10
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_10'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_11'/>
11
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_11'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;public double getBMI(){</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_12'/>
12
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_12'>1</a>
<span>
1. getBMI : replaced double return with 0.0d for com/epam/bootcamp/bmi_calculator/interfacesImplements/UsBMI::getBMI &rarr; KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'>&#9;&#9;return this.bmi;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_13'/>
13
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_13'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;}</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_14'/>
14
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_14'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_15'/>
15
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_15'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;/**</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_16'/>
16
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_16'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9; * A US m&#233;rt&#233;kegys&#233;gn&#233;l kell konstans, amilve meg kell szorozni a s&#250;lyt. Ezt a szorz&#243;t a usMultiplier konstans tartalmazza</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_17'/>
17
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_17'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9; */</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_18'/>
18
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_18'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;public void setBMI(double weight, double height){</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_19'/>
19
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_19'>3</a>
<span>
1. setBMI : Replaced double multiplication with division &rarr; KILLED<br/>
2. setBMI : Replaced double multiplication with division &rarr; KILLED<br/>
3. setBMI : Replaced double division with multiplication &rarr; KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'>&#9;&#9;this.bmi = usMultiplier*weight/(height*height); // sz&#225;molja a US bmi-t</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_20'/>
20
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_20'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''>&#9;}</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_21'/>
21
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_21'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@4c063cb9_22'/>
22
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_22'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>}</span></pre></td></tr>
<tr><td></td><td></td><td><h2>Mutations</h2></td></tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@4c063cb9_12'>12</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_12'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>getBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest13(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> replaced double return with 0.0d for com/epam/bootcamp/bmi_calculator/interfacesImplements/UsBMI::getBMI &rarr; KILLED</p>
</td>
</tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@4c063cb9_19'>19</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@4c063cb9_19'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest13(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double multiplication with division &rarr; KILLED</p> <p class='KILLED'><span class='pop'>2.<span><b>2</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest13(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double multiplication with division &rarr; KILLED</p> <p class='KILLED'><span class='pop'>3.<span><b>3</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest13(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double division with multiplication &rarr; KILLED</p>
</td>
</tr>
</table>
<h2>Active mutators</h2>
<ul>
<li class='mutator'>CONDITIONALS_BOUNDARY</li>
<li class='mutator'>EMPTY_RETURNS</li>
<li class='mutator'>FALSE_RETURNS</li>
<li class='mutator'>INCREMENTS</li>
<li class='mutator'>INVERT_NEGS</li>
<li class='mutator'>MATH</li>
<li class='mutator'>NEGATE_CONDITIONALS</li>
<li class='mutator'>NULL_RETURNS</li>
<li class='mutator'>PRIMITIVE_RETURNS</li>
<li class='mutator'>TRUE_RETURNS</li>
<li class='mutator'>VOID_METHOD_CALLS</li>
</ul>
<h2>Tests examined</h2>
<ul>
<li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest14(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest7(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest12(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest13(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest16(com.epam.bootcamp.bmi_calculator.BMITest) (4 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest8(com.epam.bootcamp.bmi_calculator.BMITest) (4 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest17(com.epam.bootcamp.bmi_calculator.BMITest) (1 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest6(com.epam.bootcamp.bmi_calculator.BMITest) (1 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest15(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li>
</ul>
<br/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

View File

@ -0,0 +1,69 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>Pit Test Coverage Report</h1>
<h2>Package Summary</h2>
<h3>com.epam.bootcamp.bmi_calculator.interfacesImplements</h3>
<table>
<thead>
<tr>
<th>Number of Classes</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">8/8</div></div></td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">7/7</div></div></td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">7/7</div></div></td>
</tr>
</tbody>
</table>
<h3>Breakdown by Class</h3>
<table>
<thead>
<tr>
<th>Name</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="./MetricBMI.java.html">MetricBMI.java</a></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">4/4</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">3/3</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">3/3</div></div></td>
</tr>
<tr>
<td><a href="./UsBMI.java.html">UsBMI.java</a></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">4/4</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">4/4</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">4/4</div></div></td>
</tr>
</tbody>
</table>
<br/>
<hr/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

View File

@ -0,0 +1,69 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>Pit Test Coverage Report</h1>
<h2>Package Summary</h2>
<h3>com.epam.bootcamp.bmi_calculator</h3>
<table>
<thead>
<tr>
<th>Number of Classes</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">58/58</div></div></td>
<td>82% <div class="coverage_bar"><div class="coverage_complete width-82"></div><div class="coverage_legend">41/50</div></div></td>
<td>82% <div class="coverage_bar"><div class="coverage_complete width-82"></div><div class="coverage_legend">41/50</div></div></td>
</tr>
</tbody>
</table>
<h3>Breakdown by Class</h3>
<table>
<thead>
<tr>
<th>Name</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="./App.java.html">App.java</a></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">28/28</div></div></td>
<td><div class="coverage_percentage">71% </div><div class="coverage_bar"><div class="coverage_complete width-71"></div><div class="coverage_legend">17/24</div></div></td>
<td><div class="coverage_percentage">71% </div><div class="coverage_bar"><div class="coverage_complete width-71"></div><div class="coverage_legend">17/24</div></div></td>
</tr>
<tr>
<td><a href="./GuessTheUnits.java.html">GuessTheUnits.java</a></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">30/30</div></div></td>
<td><div class="coverage_percentage">92% </div><div class="coverage_bar"><div class="coverage_complete width-92"></div><div class="coverage_legend">24/26</div></div></td>
<td><div class="coverage_percentage">92% </div><div class="coverage_bar"><div class="coverage_complete width-92"></div><div class="coverage_legend">24/26</div></div></td>
</tr>
</tbody>
</table>
<br/>
<hr/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

View File

@ -0,0 +1,72 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Pit Test Coverage Report</h1>
<h3>Project Summary</h3>
<table>
<thead>
<tr>
<th>Number of Classes</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td>4</td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">66/66</div></div></td>
<td>84% <div class="coverage_bar"><div class="coverage_complete width-84"></div><div class="coverage_legend">48/57</div></div></td>
<td>84% <div class="coverage_bar"><div class="coverage_complete width-84"></div><div class="coverage_legend">48/57</div></div></td>
</tr>
</tbody>
</table>
<h3>Breakdown by Package</h3>
<table>
<thead>
<tr>
<th>Name</th>
<th>Number of Classes</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="./com.epam.bootcamp.bmi_calculator/index.html">com.epam.bootcamp.bmi_calculator</a></td>
<td>2</td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">58/58</div></div></td>
<td><div class="coverage_percentage">82% </div><div class="coverage_bar"><div class="coverage_complete width-82"></div><div class="coverage_legend">41/50</div></div></td>
<td><div class="coverage_percentage">82% </div><div class="coverage_bar"><div class="coverage_complete width-82"></div><div class="coverage_legend">41/50</div></div></td>
</tr>
<tr>
<td><a href="./com.epam.bootcamp.bmi_calculator.interfacesImplements/index.html">com.epam.bootcamp.bmi_calculator.interfacesImplements</a></td>
<td>2</td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">8/8</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">7/7</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">7/7</div></div></td>
</tr>
</tbody>
</table>
<br/>
<hr/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

View File

@ -0,0 +1,563 @@
html, body, div, span, p, blockquote, pre {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body{
line-height: 1;
color: black;
background: white;
margin-left: 20px;
}
.src {
border: 1px solid #dddddd;
padding-top: 10px;
padding-right: 5px;
padding-left: 5px;
font-family: Consolas, Courier, monospace;
}
.covered, .COVERED {
background-color: #ddffdd;
}
.uncovered, .UNCOVERED {
background-color: #ffdddd;
}
.killed, .KILLED {
background-color: #aaffaa;
}
.survived, .SURVIVED {
background-color: #ffaaaa;
}
.uncertain, .UNCERTAIN {
background-color: #dde7ef;
}
.run_error, .RUN_ERROR {
background-color: #dde7ef;
}
.na {
background-color: #eeeeee;
}
.timed_out, .TIMED_OUT {
background-color: #dde7ef;
}
.non_viable, .NON_VIABLE {
background-color: #aaffaa;
}
.memory_error, .MEMORY_ERROR {
background-color: #dde7ef;
}
.not_started, .NO_STARTED {
background-color: #dde7ef; color : red
}
.no_coverage, .NO_COVERAGE {
background-color: #ffaaaa;
}
.tests {
width: 50%;
float: left;
}
.mutees {
float: right;
width: 50%;
}
.unit {
padding-top: 20px;
clear: both;
}
.coverage_bar {
display: inline-block;
height: 1.1em;
width: 130px;
background: #FAA;
margin: 0 5px;
vertical-align: middle;
border: 1px solid #AAA;
position: relative;
}
.coverage_complete {
display: inline-block;
height: 100%;
background: #DFD;
float: left;
}
.coverage_legend {
position: absolute;
height: 100%;
width: 100%;
left: 0;
top: 0;
text-align: center;
}
.line, .mut {
vertical-align: middle;
}
.coverage_percentage {
display: inline-block;
width: 3em;
text-align: right;
}
.pop {
outline:none;
}
.pop strong {
line-height: 30px;
}
.pop {
text-decoration: none;
}
.pop span {
z-index: 10;
display: none;
padding: 14px 20px;
margin-top: -30px;
margin-left: 28px;
width: 800px;
line-height: 16px;
word-wrap: break-word;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-moz-box-shadow: 5px 5px 8px #CCC;
-webkit-box-shadow: 5px 5px 8px #CCC;
box-shadow: 5px 5px 8px #CCC;
}
.pop:hover span {
display: inline;
position: absolute;
color: #111;
border: 1px solid #DCA;
background: #fffAF0;
}
.width-1 {
width: 1%;
}
.width-2 {
width: 2%;
}
.width-3 {
width: 3%;
}
.width-4 {
width: 4%;
}
.width-5 {
width: 5%;
}
.width-6 {
width: 6%;
}
.width-7 {
width: 7%;
}
.width-8 {
width: 8%;
}
.width-9 {
width: 9%;
}
.width-10 {
width: 10%;
}
.width-11 {
width: 11%;
}
.width-12 {
width: 12%;
}
.width-13 {
width: 13%;
}
.width-14 {
width: 14%;
}
.width-15 {
width: 15%;
}
.width-16 {
width: 16%;
}
.width-17 {
width: 17%;
}
.width-18 {
width: 18%;
}
.width-19 {
width: 19%;
}
.width-20 {
width: 20%;
}
.width-21 {
width: 21%;
}
.width-22 {
width: 22%;
}
.width-23 {
width: 23%;
}
.width-24 {
width: 24%;
}
.width-25 {
width: 25%;
}
.width-26 {
width: 26%;
}
.width-27 {
width: 27%;
}
.width-28 {
width: 28%;
}
.width-29 {
width: 29%;
}
.width-30 {
width: 30%;
}
.width-31 {
width: 31%;
}
.width-32 {
width: 32%;
}
.width-33 {
width: 33%;
}
.width-34 {
width: 34%;
}
.width-35 {
width: 35%;
}
.width-36 {
width: 36%;
}
.width-37 {
width: 37%;
}
.width-38 {
width: 38%;
}
.width-39 {
width: 39%;
}
.width-40 {
width: 40%;
}
.width-41 {
width: 41%;
}
.width-42 {
width: 42%;
}
.width-43 {
width: 43%;
}
.width-44 {
width: 44%;
}
.width-45 {
width: 45%;
}
.width-46 {
width: 46%;
}
.width-47 {
width: 47%;
}
.width-48 {
width: 48%;
}
.width-49 {
width: 49%;
}
.width-50 {
width: 50%;
}
.width-51 {
width: 51%;
}
.width-52 {
width: 52%;
}
.width-53 {
width: 53%;
}
.width-54 {
width: 54%;
}
.width-55 {
width: 55%;
}
.width-56 {
width: 56%;
}
.width-57 {
width: 57%;
}
.width-58 {
width: 58%;
}
.width-59 {
width: 59%;
}
.width-60 {
width: 60%;
}
.width-61 {
width: 61%;
}
.width-62 {
width: 62%;
}
.width-63 {
width: 63%;
}
.width-64 {
width: 64%;
}
.width-65 {
width: 65%;
}
.width-66 {
width: 66%;
}
.width-67 {
width: 67%;
}
.width-68 {
width: 68%;
}
.width-69 {
width: 69%;
}
.width-70 {
width: 70%;
}
.width-71 {
width: 71%;
}
.width-72 {
width: 72%;
}
.width-73 {
width: 73%;
}
.width-74 {
width: 74%;
}
.width-75 {
width: 75%;
}
.width-76 {
width: 76%;
}
.width-77 {
width: 77%;
}
.width-78 {
width: 78%;
}
.width-79 {
width: 79%;
}
.width-80 {
width: 80%;
}
.width-81 {
width: 81%;
}
.width-82 {
width: 82%;
}
.width-83 {
width: 83%;
}
.width-84 {
width: 84%;
}
.width-85 {
width: 85%;
}
.width-86 {
width: 86%;
}
.width-87 {
width: 87%;
}
.width-88 {
width: 88%;
}
.width-89 {
width: 89%;
}
.width-90 {
width: 90%;
}
.width-91 {
width: 91%;
}
.width-92 {
width: 92%;
}
.width-93 {
width: 93%;
}
.width-94 {
width: 94%;
}
.width-95 {
width: 95%;
}
.width-96 {
width: 96%;
}
.width-97 {
width: 97%;
}
.width-98 {
width: 98%;
}
.width-99 {
width: 99%;
}
.width-100 {
width: 100%;
}

View File

@ -0,0 +1,207 @@
package com.epam.bootcamp.bmi_calculator;
import static org.junit.Assert.*;
import org.junit.*;
import org.junit.rules.ExpectedException;
import com.epam.bootcamp.bmi_calculator.interfacesImplements.MetricBMI;
public class
BMITest {
App app;
/*@Test
public void GuessTheUnitsTest1() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(1.7,50.0);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest2() throws Exception{
}*/
@Before
public void setup(){
app = new App();
}
@Test
public void BMITest1() throws Exception{
app.setHeight(1.7);
app.setWeight(50);
assertEquals(app.calculateBMI(),17.3,1);
assertEquals(app.bmiResult(),"Thinness");
}
@Test
public void BMITest2() throws Exception{
try{
app.setHeight(0);
app.setWeight(50.0);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Height is equals or less than zero.");
}
}
@Test
public void BMITest3() throws Exception{
try{
app.setHeight(1);
app.setWeight(-3);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Weight is equals or less than zero.");
}
}
@Test
public void BMITest4() throws Exception{
try{
app.setHeight(170);
app.setWeight(1764);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Height and weight is in different metric.");
}
}
@Test
public void BMITest5() throws Exception{
app.setHeight(170);
app.setWeight(50.0);
assertEquals(app.calculateBMI(),17.3,1);
assertEquals(app.bmiResult(),"Thinness");
}
@Test
public void BMITest6() throws Exception{
app.setHeight(5.58);
app.setWeight(1764);
assertEquals(app.calculateBMI(),17.3,1);
assertEquals(app.bmiResult(),"Thinness");
}
@Test
public void BMITest7() throws Exception{
app.setHeight(86.7);
app.setWeight(6349.3);
assertEquals(app.calculateBMI(),37.19,0.5);
assertEquals(app.bmiResult(),"Heavily overweight");
}
@Test
public void BMITest8() throws Exception{
app.setHeight(6.56);
app.setWeight(220.47);
assertEquals(app.calculateBMI(),25,0.5);
assertEquals(app.bmiResult(),"Overweight");
}
@Test
public void BMITest9() throws Exception{
app.setHeight(200);
app.setWeight(80);
assertEquals(app.calculateBMI(),20,0.0);
assertEquals(app.bmiResult(),"Normal");
}
@Test
public void BMITest10() throws Exception{
try{
app.setHeight(1);
app.setWeight(0);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Weight is equals or less than zero.");
}
}
@Test
public void BMITest11() throws Exception{
try{
app.setHeight(0);
app.setWeight(0);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Weight is equals or less than zero.");
}
}
@Test
public void BMITest12() throws Exception{
app.setHeight(5.5);
app.setWeight(115);
assertEquals(app.calculateBMI(),18.55945821854913,0.0);
assertEquals(app.bmiResult(),"Normal");
}
@Test
public void BMITest13() throws Exception{
app.setHeight(5.58);
app.setWeight(110.25);
assertEquals(app.calculateBMI(),17.3,1);
assertEquals(app.bmiResult(),"Thinness");
}
@Test
public void BMITest14() throws Exception {
app.setHeight(65);
app.setWeight(149.5);
assertEquals(app.calculateBMI(), 24.875384615384615, 0.0);
assertEquals(app.bmiResult(), "Normal");
}
@Test
public void BMITest15() throws Exception {
app.setHeight(65);
app.setWeight(1780);
assertEquals(app.calculateBMI(), 18.51094674556213, 0.0);
assertEquals(app.bmiResult(), "Normal");
}
@Test
public void BMITest16() throws Exception{
app.setHeight(6.4);
app.setWeight(252);
assertEquals(app.calculateBMI(),30.035400390624993,0.5);
assertEquals(app.bmiResult(),"Heavily overweight");
}
@Test
public void BMITest17() throws Exception {
app.setHeight(65);
app.setWeight(1770);
assertEquals(app.calculateBMI(), 18.406952662721892, 0.0);
assertEquals(app.bmiResult(), "Thinness");
}
@Test
public void BMITest18() throws Exception{
app.setHeight(1.93);
app.setWeight(92.8);
assertEquals(app.calculateBMI(),24.91342049450992,0.0);
assertEquals(app.bmiResult(),"Overweight");
}
@Test
public void BMITest19() throws Exception{
app.setHeight(1.93);
app.setWeight(111.3);
assertEquals(app.calculateBMI(),29.879996778437004,0.0);
assertEquals(app.bmiResult(),"Overweight");
}
@Test
public void BMITest20() throws Exception{
try{
app.setHeight(-4);
app.setWeight(50.0);
app.calculateBMI();
}catch(Exception e){
assertEquals(e.getMessage(),"Height is equals or less than zero.");
}
}
}

View File

@ -0,0 +1,82 @@
package com.epam.bootcamp.bmi_calculator;
import static org.junit.Assert.*;
import org.junit.*;
public class GuessTheUnitsTest {
@Test
public void GuessTheUnitsTest1() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(1.7,50.0);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest2() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(170,50.0);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest3() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(5.58,1764);
assertEquals(gtu.getUnitType(),"US");
assertEquals(gtu.getWeight(),110,1);
}
@Test
public void GuessTheUnitsTest4() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(65,2000);
assertEquals(gtu.getUnitType(),"US");
assertEquals(gtu.getWeight(),125,1);
}
@Test
public void GuessTheUnitsTest5() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(100,1000);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest6() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(9.9,3.01);
assertEquals(gtu.getUnitType(),"US");
assertEquals(gtu.getWeight(),3.01,1);
}
@Test
public void GuessTheUnitsTest7() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(2.99,1000);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest8() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(3,1000);
assertEquals(gtu.getUnitType(),"metric");
}
@Test
public void GuessTheUnitsTest9() throws Exception{
GuessTheUnits gtu = new GuessTheUnits(99.9,1000.1);
assertEquals(gtu.getUnitType(),"US");
assertEquals(gtu.getWeight(),62.50625,0.01);
}
@Test
public void GuessTheUnitsTest10() throws Exception{
try{
GuessTheUnits gtu = new GuessTheUnits(170,1764);
assertEquals(gtu.getUnitType(),"US");
}catch(Exception e){
assertEquals(e.getMessage(),"Height and weight is in different metric.");
}
}
}

View File

@ -0,0 +1,345 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>MetricBMI.java</h1>
<table class="src">
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_1'/>
1
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_1'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>package com.epam.bootcamp.bmi_calculator.interfacesImplements;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_2'/>
2
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_2'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_3'/>
3
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_3'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>import com.epam.bootcamp.bmi_calculator.interfaces.UnitsInterface;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_4'/>
4
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_4'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_5'/>
5
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_5'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''>public class MetricBMI implements UnitsInterface{</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_6'/>
6
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_6'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_7'/>
7
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_7'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;private double bmi;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_8'/>
8
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_8'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_9'/>
9
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_9'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;public double getBMI(){</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_10'/>
10
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_10'>1</a>
<span>
1. getBMI : replaced double return with 0.0d for com/epam/bootcamp/bmi_calculator/interfacesImplements/MetricBMI::getBMI &rarr; KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'>&#9;&#9;return this.bmi;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_11'/>
11
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_11'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;}</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_12'/>
12
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_12'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_13'/>
13
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_13'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;public void setBMI(double weight, double height){</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_14'/>
14
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_14'>2</a>
<span>
1. setBMI : Replaced double multiplication with division &rarr; KILLED<br/>
2. setBMI : Replaced double division with multiplication &rarr; KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'>&#9;&#9;this.bmi = weight/(height*height); //sz&#225;molja a metrikus BMI-t</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_15'/>
15
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_15'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''>&#9;}</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_16'/>
16
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_16'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@6ee88e21_17'/>
17
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_17'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>}</span></pre></td></tr>
<tr><td></td><td></td><td><h2>Mutations</h2></td></tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@6ee88e21_10'>10</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_10'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>getBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest5(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> replaced double return with 0.0d for com/epam/bootcamp/bmi_calculator/interfacesImplements/MetricBMI::getBMI &rarr; KILLED</p>
</td>
</tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@6ee88e21_14'>14</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@6ee88e21_14'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest5(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double multiplication with division &rarr; KILLED</p> <p class='KILLED'><span class='pop'>2.<span><b>2</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest5(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double division with multiplication &rarr; KILLED</p>
</td>
</tr>
</table>
<h2>Active mutators</h2>
<ul>
<li class='mutator'>CONDITIONALS_BOUNDARY</li>
<li class='mutator'>EMPTY_RETURNS</li>
<li class='mutator'>FALSE_RETURNS</li>
<li class='mutator'>INCREMENTS</li>
<li class='mutator'>INVERT_NEGS</li>
<li class='mutator'>MATH</li>
<li class='mutator'>NEGATE_CONDITIONALS</li>
<li class='mutator'>NULL_RETURNS</li>
<li class='mutator'>PRIMITIVE_RETURNS</li>
<li class='mutator'>TRUE_RETURNS</li>
<li class='mutator'>VOID_METHOD_CALLS</li>
</ul>
<h2>Tests examined</h2>
<ul>
<li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest19(com.epam.bootcamp.bmi_calculator.BMITest) (3 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest1(com.epam.bootcamp.bmi_calculator.BMITest) (18 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest5(com.epam.bootcamp.bmi_calculator.BMITest) (1 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest9(com.epam.bootcamp.bmi_calculator.BMITest) (1 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest18(com.epam.bootcamp.bmi_calculator.BMITest) (3 ms)</li>
</ul>
<br/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

View File

@ -0,0 +1,422 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>UsBMI.java</h1>
<table class="src">
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_1'/>
1
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_1'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>package com.epam.bootcamp.bmi_calculator.interfacesImplements;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_2'/>
2
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_2'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_3'/>
3
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_3'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>import com.epam.bootcamp.bmi_calculator.interfaces.UnitsInterface;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_4'/>
4
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_4'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''></span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_5'/>
5
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_5'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''>public class UsBMI implements UnitsInterface{</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_6'/>
6
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_6'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_7'/>
7
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_7'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;private static final int usMultiplier = 703;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_8'/>
8
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_8'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_9'/>
9
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_9'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;private double bmi;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_10'/>
10
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_10'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_11'/>
11
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_11'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;public double getBMI(){</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_12'/>
12
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_12'>1</a>
<span>
1. getBMI : replaced double return with 0.0d for com/epam/bootcamp/bmi_calculator/interfacesImplements/UsBMI::getBMI &rarr; KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'>&#9;&#9;return this.bmi;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_13'/>
13
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_13'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;}</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_14'/>
14
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_14'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_15'/>
15
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_15'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;/**</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_16'/>
16
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_16'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9; * A US m&#233;rt&#233;kegys&#233;gn&#233;l kell konstans, amilve meg kell szorozni a s&#250;lyt. Ezt a szorz&#243;t a usMultiplier konstans tartalmazza</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_17'/>
17
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_17'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9; */</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_18'/>
18
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_18'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;public void setBMI(double weight, double height){</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_19'/>
19
</td>
<td class='killed'>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_19'>3</a>
<span>
1. setBMI : Replaced double multiplication with division &rarr; KILLED<br/>
2. setBMI : Replaced double multiplication with division &rarr; KILLED<br/>
3. setBMI : Replaced double division with multiplication &rarr; KILLED<br/>
</span>
</span>
</td>
<td class='covered'><pre><span class='killed'>&#9;&#9;this.bmi = usMultiplier*weight/(height*height); // sz&#225;molja a US bmi-t</span></pre></td></tr>
<tr>
<td class='covered'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_20'/>
20
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_20'></a>
<span>
</span>
</span>
</td>
<td class='covered'><pre><span class=''>&#9;}</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_21'/>
21
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_21'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>&#9;</span></pre></td></tr>
<tr>
<td class='na'>
<a name='org.pitest.mutationtest.report.html.SourceFile@2f9a10df_22'/>
22
</td>
<td class=''>
<span class='pop'>
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_22'></a>
<span>
</span>
</span>
</td>
<td class=''><pre><span class=''>}</span></pre></td></tr>
<tr><td></td><td></td><td><h2>Mutations</h2></td></tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@2f9a10df_12'>12</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_12'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>getBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest12(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> replaced double return with 0.0d for com/epam/bootcamp/bmi_calculator/interfacesImplements/UsBMI::getBMI &rarr; KILLED</p>
</td>
</tr>
<tr>
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@2f9a10df_19'>19</a></td>
<td></td>
<td>
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@2f9a10df_19'/>
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest12(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double multiplication with division &rarr; KILLED</p> <p class='KILLED'><span class='pop'>2.<span><b>2</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest12(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double multiplication with division &rarr; KILLED</p> <p class='KILLED'><span class='pop'>3.<span><b>3</b><br/><b>Location : </b>setBMI<br/><b>Killed by : </b>com.epam.bootcamp.bmi_calculator.BMITest.BMITest12(com.epam.bootcamp.bmi_calculator.BMITest)</span></span> Replaced double division with multiplication &rarr; KILLED</p>
</td>
</tr>
</table>
<h2>Active mutators</h2>
<ul>
<li class='mutator'>CONDITIONALS_BOUNDARY</li>
<li class='mutator'>EMPTY_RETURNS</li>
<li class='mutator'>FALSE_RETURNS</li>
<li class='mutator'>INCREMENTS</li>
<li class='mutator'>INVERT_NEGS</li>
<li class='mutator'>MATH</li>
<li class='mutator'>NEGATE_CONDITIONALS</li>
<li class='mutator'>NULL_RETURNS</li>
<li class='mutator'>PRIMITIVE_RETURNS</li>
<li class='mutator'>TRUE_RETURNS</li>
<li class='mutator'>VOID_METHOD_CALLS</li>
</ul>
<h2>Tests examined</h2>
<ul>
<li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest14(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest7(com.epam.bootcamp.bmi_calculator.BMITest) (1 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest12(com.epam.bootcamp.bmi_calculator.BMITest) (1 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest13(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest16(com.epam.bootcamp.bmi_calculator.BMITest) (4 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest8(com.epam.bootcamp.bmi_calculator.BMITest) (2 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest17(com.epam.bootcamp.bmi_calculator.BMITest) (7 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest6(com.epam.bootcamp.bmi_calculator.BMITest) (1 ms)</li><li>com.epam.bootcamp.bmi_calculator.BMITest.BMITest15(com.epam.bootcamp.bmi_calculator.BMITest) (3 ms)</li>
</ul>
<br/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

View File

@ -0,0 +1,69 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>Pit Test Coverage Report</h1>
<h2>Package Summary</h2>
<h3>com.epam.bootcamp.bmi_calculator.interfacesImplements</h3>
<table>
<thead>
<tr>
<th>Number of Classes</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">8/8</div></div></td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">7/7</div></div></td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">7/7</div></div></td>
</tr>
</tbody>
</table>
<h3>Breakdown by Class</h3>
<table>
<thead>
<tr>
<th>Name</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="./MetricBMI.java.html">MetricBMI.java</a></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">4/4</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">3/3</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">3/3</div></div></td>
</tr>
<tr>
<td><a href="./UsBMI.java.html">UsBMI.java</a></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">4/4</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">4/4</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">4/4</div></div></td>
</tr>
</tbody>
</table>
<br/>
<hr/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,69 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>Pit Test Coverage Report</h1>
<h2>Package Summary</h2>
<h3>com.epam.bootcamp.bmi_calculator</h3>
<table>
<thead>
<tr>
<th>Number of Classes</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">58/58</div></div></td>
<td>80% <div class="coverage_bar"><div class="coverage_complete width-80"></div><div class="coverage_legend">40/50</div></div></td>
<td>80% <div class="coverage_bar"><div class="coverage_complete width-80"></div><div class="coverage_legend">40/50</div></div></td>
</tr>
</tbody>
</table>
<h3>Breakdown by Class</h3>
<table>
<thead>
<tr>
<th>Name</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="./App.java.html">App.java</a></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">28/28</div></div></td>
<td><div class="coverage_percentage">71% </div><div class="coverage_bar"><div class="coverage_complete width-71"></div><div class="coverage_legend">17/24</div></div></td>
<td><div class="coverage_percentage">71% </div><div class="coverage_bar"><div class="coverage_complete width-71"></div><div class="coverage_legend">17/24</div></div></td>
</tr>
<tr>
<td><a href="./GuessTheUnits.java.html">GuessTheUnits.java</a></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">30/30</div></div></td>
<td><div class="coverage_percentage">88% </div><div class="coverage_bar"><div class="coverage_complete width-88"></div><div class="coverage_legend">23/26</div></div></td>
<td><div class="coverage_percentage">88% </div><div class="coverage_bar"><div class="coverage_complete width-88"></div><div class="coverage_legend">23/26</div></div></td>
</tr>
</tbody>
</table>
<br/>
<hr/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

View File

@ -0,0 +1,72 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Pit Test Coverage Report</h1>
<h3>Project Summary</h3>
<table>
<thead>
<tr>
<th>Number of Classes</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td>4</td>
<td>100% <div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">66/66</div></div></td>
<td>82% <div class="coverage_bar"><div class="coverage_complete width-82"></div><div class="coverage_legend">47/57</div></div></td>
<td>82% <div class="coverage_bar"><div class="coverage_complete width-82"></div><div class="coverage_legend">47/57</div></div></td>
</tr>
</tbody>
</table>
<h3>Breakdown by Package</h3>
<table>
<thead>
<tr>
<th>Name</th>
<th>Number of Classes</th>
<th>Line Coverage</th>
<th>Mutation Coverage</th>
<th>Test Strength</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="./com.epam.bootcamp.bmi_calculator/index.html">com.epam.bootcamp.bmi_calculator</a></td>
<td>2</td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">58/58</div></div></td>
<td><div class="coverage_percentage">80% </div><div class="coverage_bar"><div class="coverage_complete width-80"></div><div class="coverage_legend">40/50</div></div></td>
<td><div class="coverage_percentage">80% </div><div class="coverage_bar"><div class="coverage_complete width-80"></div><div class="coverage_legend">40/50</div></div></td>
</tr>
<tr>
<td><a href="./com.epam.bootcamp.bmi_calculator.interfacesImplements/index.html">com.epam.bootcamp.bmi_calculator.interfacesImplements</a></td>
<td>2</td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">8/8</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">7/7</div></div></td>
<td><div class="coverage_percentage">100% </div><div class="coverage_bar"><div class="coverage_complete width-100"></div><div class="coverage_legend">7/7</div></div></td>
</tr>
</tbody>
</table>
<br/>
<hr/>
Report generated by <a href='http://pitest.org'>PIT</a> 1.8.1
</body>
</html>

View File

@ -0,0 +1,563 @@
html, body, div, span, p, blockquote, pre {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body{
line-height: 1;
color: black;
background: white;
margin-left: 20px;
}
.src {
border: 1px solid #dddddd;
padding-top: 10px;
padding-right: 5px;
padding-left: 5px;
font-family: Consolas, Courier, monospace;
}
.covered, .COVERED {
background-color: #ddffdd;
}
.uncovered, .UNCOVERED {
background-color: #ffdddd;
}
.killed, .KILLED {
background-color: #aaffaa;
}
.survived, .SURVIVED {
background-color: #ffaaaa;
}
.uncertain, .UNCERTAIN {
background-color: #dde7ef;
}
.run_error, .RUN_ERROR {
background-color: #dde7ef;
}
.na {
background-color: #eeeeee;
}
.timed_out, .TIMED_OUT {
background-color: #dde7ef;
}
.non_viable, .NON_VIABLE {
background-color: #aaffaa;
}
.memory_error, .MEMORY_ERROR {
background-color: #dde7ef;
}
.not_started, .NO_STARTED {
background-color: #dde7ef; color : red
}
.no_coverage, .NO_COVERAGE {
background-color: #ffaaaa;
}
.tests {
width: 50%;
float: left;
}
.mutees {
float: right;
width: 50%;
}
.unit {
padding-top: 20px;
clear: both;
}
.coverage_bar {
display: inline-block;
height: 1.1em;
width: 130px;
background: #FAA;
margin: 0 5px;
vertical-align: middle;
border: 1px solid #AAA;
position: relative;
}
.coverage_complete {
display: inline-block;
height: 100%;
background: #DFD;
float: left;
}
.coverage_legend {
position: absolute;
height: 100%;
width: 100%;
left: 0;
top: 0;
text-align: center;
}
.line, .mut {
vertical-align: middle;
}
.coverage_percentage {
display: inline-block;
width: 3em;
text-align: right;
}
.pop {
outline:none;
}
.pop strong {
line-height: 30px;
}
.pop {
text-decoration: none;
}
.pop span {
z-index: 10;
display: none;
padding: 14px 20px;
margin-top: -30px;
margin-left: 28px;
width: 800px;
line-height: 16px;
word-wrap: break-word;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-moz-box-shadow: 5px 5px 8px #CCC;
-webkit-box-shadow: 5px 5px 8px #CCC;
box-shadow: 5px 5px 8px #CCC;
}
.pop:hover span {
display: inline;
position: absolute;
color: #111;
border: 1px solid #DCA;
background: #fffAF0;
}
.width-1 {
width: 1%;
}
.width-2 {
width: 2%;
}
.width-3 {
width: 3%;
}
.width-4 {
width: 4%;
}
.width-5 {
width: 5%;
}
.width-6 {
width: 6%;
}
.width-7 {
width: 7%;
}
.width-8 {
width: 8%;
}
.width-9 {
width: 9%;
}
.width-10 {
width: 10%;
}
.width-11 {
width: 11%;
}
.width-12 {
width: 12%;
}
.width-13 {
width: 13%;
}
.width-14 {
width: 14%;
}
.width-15 {
width: 15%;
}
.width-16 {
width: 16%;
}
.width-17 {
width: 17%;
}
.width-18 {
width: 18%;
}
.width-19 {
width: 19%;
}
.width-20 {
width: 20%;
}
.width-21 {
width: 21%;
}
.width-22 {
width: 22%;
}
.width-23 {
width: 23%;
}
.width-24 {
width: 24%;
}
.width-25 {
width: 25%;
}
.width-26 {
width: 26%;
}
.width-27 {
width: 27%;
}
.width-28 {
width: 28%;
}
.width-29 {
width: 29%;
}
.width-30 {
width: 30%;
}
.width-31 {
width: 31%;
}
.width-32 {
width: 32%;
}
.width-33 {
width: 33%;
}
.width-34 {
width: 34%;
}
.width-35 {
width: 35%;
}
.width-36 {
width: 36%;
}
.width-37 {
width: 37%;
}
.width-38 {
width: 38%;
}
.width-39 {
width: 39%;
}
.width-40 {
width: 40%;
}
.width-41 {
width: 41%;
}
.width-42 {
width: 42%;
}
.width-43 {
width: 43%;
}
.width-44 {
width: 44%;
}
.width-45 {
width: 45%;
}
.width-46 {
width: 46%;
}
.width-47 {
width: 47%;
}
.width-48 {
width: 48%;
}
.width-49 {
width: 49%;
}
.width-50 {
width: 50%;
}
.width-51 {
width: 51%;
}
.width-52 {
width: 52%;
}
.width-53 {
width: 53%;
}
.width-54 {
width: 54%;
}
.width-55 {
width: 55%;
}
.width-56 {
width: 56%;
}
.width-57 {
width: 57%;
}
.width-58 {
width: 58%;
}
.width-59 {
width: 59%;
}
.width-60 {
width: 60%;
}
.width-61 {
width: 61%;
}
.width-62 {
width: 62%;
}
.width-63 {
width: 63%;
}
.width-64 {
width: 64%;
}
.width-65 {
width: 65%;
}
.width-66 {
width: 66%;
}
.width-67 {
width: 67%;
}
.width-68 {
width: 68%;
}
.width-69 {
width: 69%;
}
.width-70 {
width: 70%;
}
.width-71 {
width: 71%;
}
.width-72 {
width: 72%;
}
.width-73 {
width: 73%;
}
.width-74 {
width: 74%;
}
.width-75 {
width: 75%;
}
.width-76 {
width: 76%;
}
.width-77 {
width: 77%;
}
.width-78 {
width: 78%;
}
.width-79 {
width: 79%;
}
.width-80 {
width: 80%;
}
.width-81 {
width: 81%;
}
.width-82 {
width: 82%;
}
.width-83 {
width: 83%;
}
.width-84 {
width: 84%;
}
.width-85 {
width: 85%;
}
.width-86 {
width: 86%;
}
.width-87 {
width: 87%;
}
.width-88 {
width: 88%;
}
.width-89 {
width: 89%;
}
.width-90 {
width: 90%;
}
.width-91 {
width: 91%;
}
.width-92 {
width: 92%;
}
.width-93 {
width: 93%;
}
.width-94 {
width: 94%;
}
.width-95 {
width: 95%;
}
.width-96 {
width: 96%;
}
.width-97 {
width: 97%;
}
.width-98 {
width: 98%;
}
.width-99 {
width: 99%;
}
.width-100 {
width: 100%;
}