|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| Resident.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 |
package org.durhamrescuemission;
|
|
| 2 |
|
|
| 3 |
import org.nakedobjects.object.AbstractNakedObject;
|
|
| 4 |
import org.nakedobjects.object.Title;
|
|
| 5 |
import org.nakedobjects.object.value.TextString;
|
|
| 6 |
|
|
| 7 |
/**
|
|
| 8 |
* @author <a href="mailto:matthew.todd@alumni.duke.edu">Matthew Todd</a>
|
|
| 9 |
*/
|
|
| 10 |
public class Resident extends AbstractNakedObject { |
|
| 11 |
// TODO pretty sure this should be first, middle, last, preferred,
|
|
| 12 |
// all in a Name object that we'll write. But now we're just building
|
|
| 13 |
// up the build/test script infrastructure.
|
|
| 14 |
private final TextString firstName;
|
|
| 15 |
private final TextString lastName;
|
|
| 16 |
|
|
| 17 | 1 |
public Resident() {
|
| 18 | 1 |
this.firstName = new TextString(); |
| 19 | 1 |
this.lastName = new TextString(); |
| 20 |
} |
|
| 21 |
|
|
| 22 | 5 |
public TextString getFirstName() {
|
| 23 | 5 |
return firstName;
|
| 24 |
} |
|
| 25 |
|
|
| 26 | 5 |
public TextString getLastName() {
|
| 27 | 5 |
return lastName;
|
| 28 |
} |
|
| 29 |
|
|
| 30 | 2 |
public Title title() {
|
| 31 | 2 |
return firstName.title().append(lastName);
|
| 32 |
} |
|
| 33 |
} |
|
| 34 |
|
|
||||||||||