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 1
1
import static org .assertj .core .api .Assertions .assertThatThrownBy ;
2
2
import static org .junit .jupiter .api .Assertions .assertEquals ;
3
- import org .junit .jupiter .api .BeforeEach ;
4
- import org .junit .jupiter .api .Test ;
5
3
6
4
import com .codedifferently .lesson15 .Employee ;
7
5
import com .codedifferently .lesson15 .EmployeeManager ;
6
+ import org .junit .jupiter .api .BeforeEach ;
7
+ import org .junit .jupiter .api .Test ;
8
8
9
9
public class EmployeeManagerTest {
10
10
@@ -61,10 +61,10 @@ public void testGetDetails() {
61
61
assertEquals (employee .getDetails (), "Id 0 Name: Zion department Code Differently0.0 salary" );
62
62
}
63
63
64
- @ Test
65
- public void testRemoveEmployee (){
64
+ @ Test
65
+ public void testRemoveEmployee () {
66
66
// Setup
67
- var id = 0 ;
67
+ var id = 0 ;
68
68
69
69
// Execute
70
70
employeeManager .addEmployee (employee );
Original file line number Diff line number Diff line change 1
1
package com .codedifferently .lesson15 ;
2
2
3
3
import static org .junit .jupiter .api .Assertions .assertEquals ;
4
+
4
5
import org .junit .jupiter .api .BeforeEach ;
5
6
import org .junit .jupiter .api .Test ;
6
7
@@ -51,15 +52,15 @@ public void testSetDepartment() {
51
52
public void testGetDetails () {
52
53
assertEquals (employee .getDetails (), "Id 0 Name: Zion department Code Differently0.0 salary" );
53
54
}
55
+
54
56
@ Test
55
- public void testGetSalary () {
57
+ public void testGetSalary () {
56
58
employee .getSalary ();
57
59
assertEquals (employee .getSalary (), 0 );
58
- }
60
+ }
59
61
60
- @ Test
61
- public void testSetSalary () {
62
+ @ Test
63
+ public void testSetSalary () {
62
64
assertEquals (employee .getSalary (), 0 );
63
65
}
64
-
65
66
}
You can’t perform that action at this time.
0 commit comments