Package test.tree
Class TestMyTree
This class tests MyTree
setUp
- This method is executed prior to each test.
myTree is initialized to an empty tree.
tearDown
- This method is executed after each test.
The reference to the created tree is cleared.
testMyTree
- Test if the newly created tree is empty.
testNullInsert
- Test to insert a null node.
testInsert
- Test if nodes are inserted in the right order.
testInsertSame
- Test to insert an already inserted node.
Test to insert a same valued node.
testCardinal
- Test if cardinal works by calculating tree size for a few different trees.