fable.test
Class AdtTest

java.lang.Object
  extended by TestCase
      extended by fable.test.AdtTest

public class AdtTest
extends TestCase


Constructor Summary
AdtTest()
           
 
Method Summary
 void setUp()
           
 void testAddChildNormal()
          testAddChildNormal: test addChild() method of FableComponent.
 void testAddChildTryCyclic()
          testAddChildTryCyclic: test addChild() method of FableComponent.
 void testAddChildTryDuplicate()
          testAddchildTryDuplicate: test addChild() method of FableComponent.
 void testGetChildrenFromLinear()
          testGetChildrenFromLinear: test getChildren() method of Fablecomponent.
 void testGetChildrenFromTree()
          testGetChildrenFromTree: test getChildren() method of FableComponent.
 void testGetChildrenOfNoChild()
          testGetChildrenOfNoChild: test getChildren() method of FableComponent.
 void testGetDate()
          testGetDate: test getDate() method of FableComponent.
 void testGetDescendantsGroup()
          testGetDescendantsGroup: test getDescendants() method of FableComponent.
 void testGetDescendantsSimple()
          testGetDescendantsSimple: test getDescendants() method of FableComponent.
 void testGetPositionChangeOfParent()
          test getPosition() when there is a chnage in parent.
 void testGetPositionFromSimpleTree()
           
 void testGetPositionNullParent()
           
 void testGetPositionWhenGetStuck()
           
 void testGetTitle()
          testGetTitle: test getTitle() method of FableCompoentn.
 void testMoveDown()
          test moveDown() method.
 void testMoveUp()
          test moveUp() method.
 void testRemoveChild()
           
 void testSetParentLinear()
          testSetParentLinear: test setParent() method of FableComponent.
 void testSetParentTree()
          testSetParentTree: test setParent() method of FableComponent.
 void testSetParentTryCyclic()
          testSetParentTryCyclic: test setParent() method of FableComponent.
 void testSetParentTryDuplicate()
          testSetParentTryDuplicate: test setParent() method of FableComponent.
 void testSetPosition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdtTest

public AdtTest()
Method Detail

setUp

public void setUp()

testGetDate

public void testGetDate()
testGetDate: test getDate() method of FableComponent.


testGetTitle

public void testGetTitle()
testGetTitle: test getTitle() method of FableCompoentn.


testSetParentLinear

public void testSetParentLinear()
testSetParentLinear: test setParent() method of FableComponent. test cases: a linear structure of FableComponent


testSetParentTree

public void testSetParentTree()
testSetParentTree: test setParent() method of FableComponent. test cases: a non-linear structure of FableComponent


testSetParentTryCyclic

public void testSetParentTryCyclic()
testSetParentTryCyclic: test setParent() method of FableComponent. test cases: a cyclic "parent-child" relation


testSetParentTryDuplicate

public void testSetParentTryDuplicate()
testSetParentTryDuplicate: test setParent() method of FableComponent. test cases: a trial to make duplicate "parent-child" relation


testGetChildrenOfNoChild

public void testGetChildrenOfNoChild()
testGetChildrenOfNoChild: test getChildren() method of FableComponent. test cases: when a parent has no child, invoke parent.getChildren().


testGetChildrenFromLinear

public void testGetChildrenFromLinear()
testGetChildrenFromLinear: test getChildren() method of Fablecomponent. test cases: a linear "parent-child" relation


testGetChildrenFromTree

public void testGetChildrenFromTree()
testGetChildrenFromTree: test getChildren() method of FableComponent. test cases: a non-linear "parent-child" relation


testAddChildNormal

public void testAddChildNormal()
testAddChildNormal: test addChild() method of FableComponent. test cases: add child to parent & set parent of child.


testAddChildTryDuplicate

public void testAddChildTryDuplicate()
testAddchildTryDuplicate: test addChild() method of FableComponent. test cases: try to add child redundantly.


testAddChildTryCyclic

public void testAddChildTryCyclic()
testAddChildTryCyclic: test addChild() method of FableComponent. test cases: try to make cyclic relation of parent and child.


testGetDescendantsSimple

public void testGetDescendantsSimple()
testGetDescendantsSimple: test getDescendants() method of FableComponent. test cases: parent - (child1, child2, child3), simple hierarchy.


testGetDescendantsGroup

public void testGetDescendantsGroup()
testGetDescendantsGroup: test getDescendants() method of FableComponent. test cases:


testGetPositionNullParent

public void testGetPositionNullParent()

testGetPositionFromSimpleTree

public void testGetPositionFromSimpleTree()

testGetPositionWhenGetStuck

public void testGetPositionWhenGetStuck()

testGetPositionChangeOfParent

public void testGetPositionChangeOfParent()
test getPosition() when there is a chnage in parent.


testMoveUp

public void testMoveUp()
test moveUp() method.


testMoveDown

public void testMoveDown()
test moveDown() method.


testSetPosition

public void testSetPosition()

testRemoveChild

public void testRemoveChild()