File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
lesson_15/tdd/tdd_app/src/test/java
com/codedifferently/lesson15 Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 11import static org .assertj .core .api .Assertions .assertThatThrownBy ;
22import static org .junit .jupiter .api .Assertions .assertEquals ;
3- import org .junit .jupiter .api .BeforeEach ;
4- import org .junit .jupiter .api .Test ;
53
64import com .codedifferently .lesson15 .Employee ;
75import com .codedifferently .lesson15 .EmployeeManager ;
6+ import org .junit .jupiter .api .BeforeEach ;
7+ import org .junit .jupiter .api .Test ;
88
99public class EmployeeManagerTest {
1010
@@ -61,10 +61,10 @@ public void testGetDetails() {
6161 assertEquals (employee .getDetails (), "Id 0 Name: Zion department Code Differently0.0 salary" );
6262 }
6363
64- @ Test
65- public void testRemoveEmployee (){
64+ @ Test
65+ public void testRemoveEmployee () {
6666 // Setup
67- var id = 0 ;
67+ var id = 0 ;
6868
6969 // Execute
7070 employeeManager .addEmployee (employee );
Original file line number Diff line number Diff line change 11package com .codedifferently .lesson15 ;
22
33import static org .junit .jupiter .api .Assertions .assertEquals ;
4+
45import org .junit .jupiter .api .BeforeEach ;
56import org .junit .jupiter .api .Test ;
67
@@ -51,15 +52,15 @@ public void testSetDepartment() {
5152 public void testGetDetails () {
5253 assertEquals (employee .getDetails (), "Id 0 Name: Zion department Code Differently0.0 salary" );
5354 }
55+
5456 @ Test
55- public void testGetSalary () {
57+ public void testGetSalary () {
5658 employee .getSalary ();
5759 assertEquals (employee .getSalary (), 0 );
58- }
60+ }
5961
60- @ Test
61- public void testSetSalary () {
62+ @ Test
63+ public void testSetSalary () {
6264 assertEquals (employee .getSalary (), 0 );
6365 }
64-
6566}
You can’t perform that action at this time.
0 commit comments