(String newTitle)
| 18 | } |
| 19 | public String getTitle() { return title; } |
| 20 | public void setTitle(String newTitle) { |
| 21 | // Throws EmptyTitleException if newTitle is null: |
| 22 | title = Optional.ofNullable(newTitle) |
| 23 | .orElseThrow(EmptyTitleException::new); |
| 24 | } |
| 25 | public Person getPerson() { return person; } |
| 26 | public void setPerson(Person newPerson) { |
| 27 | // Uses empty Person if newPerson is null: |
no test coverage detected