Skip to content

Commit fb48cff

Browse files
committed
Feat: Fix for Nile Jackson's Employee.java file (correction to getDetails)
1 parent e853c63 commit fb48cff

File tree

1 file changed

+8
-1
lines changed
  • lesson_15/tdd/tdd_app/src/main/java/com/codedifferently/lesson15

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ public boolean isEqualTo(int otherId) {
5151
}
5252

5353
public String getDetails() {
54-
return "id: " + id + " name: " + name + " department: " + department + " salary: " + salary;
54+
return "id: " + this.getId() + " name: " + this.getName() + " department: " + this.getDepartment() + " salary: " + this.getSalary();
55+
56+
5557
}
58+
59+
public void put(Employee employee) {
60+
// TODO Auto-generated method stub
61+
throw new UnsupportedOperationException("Unimplemented method 'put'");
62+
}
5663
}

0 commit comments

Comments
 (0)