Package edu.pdx.cs.joy.family
Class PersonTest
java.lang.Object
edu.pdx.cs.joy.family.PersonTest
This class tests the functionality of the
Person class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidCreate a person with an invalid gender.voidCreate a person with an invalid id.voidvoidvoidvoidvoidvoid
-
Constructor Details
-
PersonTest
public PersonTest()
-
-
Method Details
-
testInvalidPersonId
Create a person with an invalid id. Make sure it throws an FamilyTreeException. -
testInvalidGender
Create a person with an invalid gender. Make sure it throws an FamilyTreeException. -
testGetId
-
testGetGenderMale
-
testGetGenderFemale
-
testFirstName
-
testLastName
-
testMiddleName
-
testFullName
-
testFather
-
testFemaleFather
-
testGetFatherIdUnknownFather
-
testMother
-
testMaleMother
-
testGetMotherIdUnknownMother
-
testDateOfBirth
-
testDateOfDeath
-
testDateOfDeathBeforeDateOfBirth
-
testAddMarriage
-
testMaleNotInMarriage
-
testFemaleNotInMarriage
-
testEquals
-
testNotEquals
-