File tree Expand file tree Collapse file tree 2 files changed +24
-16
lines changed
lesson_15/tdd/tdd_app/src/test/java/com/codedifferently/lesson15 Expand file tree Collapse file tree 2 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 5
5
public class EmployeeManagerTest {
6
6
@ Test
7
7
void testAddEmployee () {
8
- //employees.put(employee.getId(), employee);
9
- // var newEmployee = new employees.put(employee.getId(), employee);
8
+ //Arrange
9
+ //Act
10
10
}
11
11
12
12
@ Test
13
13
void testUpdateEmployee () {
14
- // assertEmployeeInCollection(employee.getId());
15
- //employees.put(employee.getId(), employee);
14
+ //Arrange
15
+ //Act
16
16
}
17
17
18
18
@ Test
19
19
void testGetEmployee () {
20
- //assertEmployeeInCollection(id);
21
- //return employees.get(id);
20
+ //Arrange
21
+ //Act
22
22
}
23
23
24
24
@ Test
25
25
void testRemoveEmployee () {
26
- //assertEmployeeInCollection(id);
27
- //employees.remove(id);
26
+ //Arrange
27
+ //Act
28
28
}
29
29
30
30
@ Test
31
31
void testGetEmployeeCount () {
32
- // return employees.size();
32
+ //Arrange
33
+ //Act
33
34
}
34
35
}
Original file line number Diff line number Diff line change 6
6
public class EmployeeTest {
7
7
@ Test
8
8
void testGetDepartment () {
9
-
9
+ //Arrange
10
+ //Act
10
11
}
11
12
12
13
@ Test
@@ -24,27 +25,32 @@ void testGetDetails() {
24
25
25
26
@ Test
26
27
void testGetId () {
27
-
28
+ //Arrange
29
+ //Act
28
30
}
29
31
30
32
@ Test
31
33
void testGetName () {
32
-
34
+ //Arrange
35
+ //Act
33
36
}
34
37
35
38
@ Test
36
39
void testGetSalary () {
37
-
40
+ //Arrange
41
+ //Act
38
42
}
39
43
40
44
@ Test
41
45
void testSetDepartment () {
42
-
46
+ //Arrange
47
+ //Act
43
48
}
44
49
45
50
@ Test
46
51
void testSetId () {
47
-
52
+ //Arrange
53
+ //Act
48
54
}
49
55
50
56
@ Test
@@ -54,6 +60,7 @@ void testSetName() {
54
60
55
61
@ Test
56
62
void testSetSalary () {
57
-
63
+ //Arrange
64
+ //Act
58
65
}
59
66
}
You can’t perform that action at this time.
0 commit comments