test.calculation
Class TreeTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.calculation.TreeTest
All Implemented Interfaces:
junit.framework.Test

public class TreeTest
extends junit.framework.TestCase

Tests class calculation.Tree.

Version:
1
Author:
Potkuri-group

Field Summary
private  calculation.Tree tree
          Tree for testing.
private  calculation.Tree tree2
          Another tree for testing.
 
Constructor Summary
TreeTest()
           
 
Method Summary
 void doAfter()
          This method is run after tests.
 void doBefore()
          This method is run before tests.
 void testAddToTree()
          Tests method addToTree.
 void testGetLeaves()
          Tests method getLeaves and getVertexLeaves.
 void testGetVertexTree()
          Tests method getVertexTree.
 void testTree()
          Tests constructor.
 void testTreeNodePath()
          Tests method treeNodePath.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tree

private calculation.Tree tree
Tree for testing.


tree2

private calculation.Tree tree2
Another tree for testing.

Constructor Detail

TreeTest

public TreeTest()
Method Detail

doAfter

public void doAfter()
             throws java.lang.Exception
This method is run after tests.

Throws:
java.lang.Exception - Exception.

doBefore

public void doBefore()
              throws java.lang.Exception
This method is run before tests.

Throws:
java.lang.Exception - Exception.

testAddToTree

public void testAddToTree()
Tests method addToTree.


testGetLeaves

public void testGetLeaves()
Tests method getLeaves and getVertexLeaves.


testGetVertexTree

public void testGetVertexTree()
Tests method getVertexTree.


testTree

public void testTree()
Tests constructor.


testTreeNodePath

public void testTreeNodePath()
Tests method treeNodePath.