Package edu.pdx.cs.joy.family
Class XmlTest
java.lang.Object
edu.pdx.cs.joy.family.FamilyTestCase
edu.pdx.cs.joy.family.FamilyTreeConversionTestCase
edu.pdx.cs.joy.family.XmlTest
This class tests the functionality of the
XmlDumper
and XmlParser classes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FamilyTreegetFamilyTreeFor(String xml) Parsers a FamilyTree from a String containing XMLprotected StringgetStringFor(FamilyTree tree) Converts a FamilyTree to XML and returns the XML as a String.Methods 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
-
XmlTest
public XmlTest()
-
-
Method Details
-
getStringFor
Converts a FamilyTree to XML and returns the XML as a String.- Specified by:
getStringForin classFamilyTreeConversionTestCase
-
getFamilyTreeFor
Parsers a FamilyTree from a String containing XML- Specified by:
getFamilyTreeForin classFamilyTreeConversionTestCase- Throws:
FamilyTreeException
-