Package edu.pdx.cs.joy.family
Class FamilyTestCase
java.lang.Object
edu.pdx.cs.joy.family.FamilyTestCase
- Direct Known Subclasses:
FamilyTreeConversionTestCase,MarriageTest
This is the abstract superclass of classes that test family tree
classes. It contains a number of helper methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidassertContains(String container, String containee) Asserts that one String contains another(package private) voidassertContains(String message, String container, String containee) Asserts that one String contains another(package private) voidassertEquals(FamilyTree tree1, FamilyTree tree2) Asserts that twoFamilyTrees has the same contents(package private) voidassertEquals(Marriage m1, Marriage m2) Asserts that twoMarriages are the same(package private) voidassertEquals(Person p1, Person p2) Asserts that twoPersons have the same contents(package private) voidassertEquals(Date d1, Date d2) Asserts that twoDaterepresent the same day (ignores times)
-
Constructor Details
-
FamilyTestCase
public FamilyTestCase()
-
-
Method Details
-
assertEquals
Asserts that twoPersons have the same contents -
assertEquals
Asserts that twoDaterepresent the same day (ignores times) -
assertEquals
Asserts that twoMarriages are the same -
assertEquals
Asserts that twoFamilyTrees has the same contents -
assertContains
Asserts that one String contains another -
assertContains
Asserts that one String contains another
-