We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91c8815 commit bfc1c22Copy full SHA for bfc1c22
lesson_15/tdd/tdd_app/src/test/java/com/codedifferently/lesson15/Lesson15Test.java
@@ -35,4 +35,15 @@ public void testGetEmployee() {
35
// Assert
36
assertEquals(expectedValue, actualValue, "The value retrieved should match the value added.");
37
}
38
+
39
+ @Test
40
+ public void testUpdateEmployee() {
41
+ // Arrange
42
+ manager.addEmployee(emp);
43
+ Employee updatedEmployee = new Employee(0, "1, Frankenstein");
44
+ // Act
45
+ manager.updateEmployee(updatedEmployee);
46
+ //Assert
47
+ assertEquals(updatedEmployee, manager.getEmployee(1), "Updated employee details should match the new information.");
48
+ }
49
0 commit comments