File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
lesson_15/tdd/tdd_app/src/test/java Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public class EmployeeTest {
1010
1111 @ BeforeEach
1212 void setUp () {
13- employee = new Employee (15 , "Pablo" , "Emperor" , 100 );
13+ employee = new Employee (15 , "Pablo" , "Emperor" , 100.0 );
1414 }
1515
1616 @ Test
@@ -52,18 +52,19 @@ void testsetDepartment() {
5252
5353 @ Test
5454 void testgetSalary () {
55- assertEquals (100 , employee .getSalary ());
55+ assertEquals (100.0 , employee .getSalary ());
5656 }
5757
5858 @ Test
5959 void testsetSalary () {
60- employee .setSalary (1000000 );
60+ employee .setSalary (1000000.0 );
6161
62- assertEquals (1000000 , employee .getSalary ());
62+ assertEquals (1000000.0 , employee .getSalary ());
6363 }
6464
6565 @ Test
6666 void getDetails () {
67- assertEquals (employee .getDetails (), employee .getDetails ());
67+ String expectedDetails = "15 Pablo Emperor 100.0." ;
68+ assertEquals (expectedDetails , employee .getDetails ());
6869 }
6970}
You can’t perform that action at this time.
0 commit comments