Package edu.pdx.cs.joy.family
Class TextTest
java.lang.Object
edu.pdx.cs.joy.family.FamilyTestCase
edu.pdx.cs.joy.family.FamilyTreeConversionTestCase
edu.pdx.cs.joy.family.TextTest
This class tests the functionality of the
TextDumper
and TextParser classes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FamilyTreeParsers a FamilyTree from a String containing XMLprotected StringgetStringFor(FamilyTree tree) Converts a FamilyTree to text and returns the text as a String.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidFiles contains person with same id multiple timesMethods inherited from class edu.pdx.cs.joy.family.FamilyTreeConversionTestCase
_testFatherNotMale, _testMotherNotFemale, _testPersonNotFemale, _testPersonNotMale, testConformingDataMethods inherited from class edu.pdx.cs.joy.family.FamilyTestCase
assertContains, assertContains, assertEquals, assertEquals, assertEquals, assertEquals
-
Constructor Details
-
TextTest
public TextTest()
-
-
Method Details
-
getStringFor
Converts a FamilyTree to text and returns the text as a String.- Specified by:
getStringForin classFamilyTreeConversionTestCase
-
getFamilyTreeFor
Parsers a FamilyTree from a String containing XML- Specified by:
getFamilyTreeForin classFamilyTreeConversionTestCase- Throws:
FamilyTreeException
-
testSameIdMultipleTimes
Files contains person with same id multiple times -
testBadId
-
testGenderBeforeId
-
testBadGender
-
testInvalidGender
-
testMissingGender
-
testFemaleGender
-
testMaleGender
-
testFirstNameBeforeId
-
testMiddleNameBeforeId
-
testLastNameBeforeId
-
testFatherBeforeId
-
testBadFatherId
-
testNonExistentFatherId
-
testMotherBeforeId
-
testBadMotherId
-
testNonExistentMotherId
-
testDOBBeforeId
-
testBadDOB
-
testDODBeforeId
-
testBadDOD
-