Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions src/main/java/com/zipcodewilmington/person/Person.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,53 @@
public class Person {
private String name;
private int age;
// private int birthYear;
// private int numberOfSiblings;
// private String hairColor;
// private String eyeColor;
// private String favoriteColor;





public Person() {
this.name = "";
this.age = Integer.MAX_VALUE;
// this.birthYear = Integer.MAX_VALUE;
// this.numberOfSiblings = Integer.MAX_VALUE;
// this.hairColor = "";
// this.eyeColor = "";
// this.favoriteColor = "";

}

public Person(int age) {
this.age = age;
}

public Person(String name) {
this.name = name;
}

public Person(String name, int age) {
this.name = name;
this.age = age;
}

public void setName(String name) {
this.name = name;
}

public void setAge(int age) {
this.age = age;
}

public String getName() {
return null;
return name;
}

public Integer getAge() {
return null;
return age;
}
}
5 changes: 5 additions & 0 deletions src/test/java/com/zipcodewilmington/person/TestPerson.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ public void testDefaultConstructor() {
// Given
String expectedName = "";
Integer expectedAge = Integer.MAX_VALUE;
//Integer expectedBirthYear = Integer.MAX_VALUE;
//Integer expectedNumberOfSiblings = Integer.MAX_VALUE;
//
//
//

// When
Person person = new Person();
Expand Down