Skip to content

Commit 5abb36a

Browse files
author
AmiyahJo
committed
feat: adds employee manager test page
1 parent ec7c3d1 commit 5abb36a

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
lines changed

lesson_15/tdd/tdd_app/src/main/java/com/codedifferently/lesson15/EmployeeManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
public class EmployeeManager {
77
private Map<Integer, Employee> employees;
88

9-
public EmployeeManager() {
9+
public EmployeeManager() {
1010
employees = new HashMap<>();
1111
}
1212

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package com.codedifferently.lesson15;
2+
3+
import org.junit.jupiter.api.Test;
4+
5+
public class EmployeeManagerTest {
6+
@Test
7+
void testAddEmployee() {
8+
//employees.put(employee.getId(), employee);
9+
var addEmployee = new ;
10+
}
11+
12+
@Test
13+
void testUpdateEmployee() {
14+
15+
}
16+
17+
@Test
18+
void testGetEmployee() {
19+
20+
}
21+
22+
@Test
23+
void testRemoveEmployee() {
24+
25+
}
26+
27+
@Test
28+
void testGetEmployeeCount() {
29+
30+
}
31+
}

lesson_15/tdd/tdd_app/src/test/java/com/codedifferently/lesson15/Lesson15Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.codedifferently.lesson15;
22

33
import static org.assertj.core.api.Assertions.assertThat;
4-
54
import org.junit.jupiter.api.Test;
65

76
class Lesson15Test {
@@ -15,5 +14,6 @@ public void testLesson15() {
1514
public void testGetGreeting() {
1615
// Act
1716
Lesson15.main(null);
18-
}
17+
}
18+
1919
}

0 commit comments

Comments
 (0)