Class UnweightedTreeTest

java.lang.Object
es.uam.eps.ir.relison.graph.tree.UnweightedTreeTest

public class UnweightedTreeTest
extends java.lang.Object
Class that tests the fast unweighted implementation of trees.
  • Constructor Summary

    Constructors 
    Constructor Description
    UnweightedTreeTest()
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    void checkLeaves()
    Tests the method for identifying if a root is a leaf or not.
    void childrenAddition()
    Tests the addition of children to the graph.
    void descendanceCheck()
    Test the functions that check if a node descends or ascends from other node.
    void levels()
    Test the functions for obtaining the different levels of a graph.
    void obtainLeaves()
    Tests the methods for obtaining the leaves of the tree.
    void obtainParentsAndChildren()
    Tests the functions for obtaining parents and children of nodes.
    void parentalCheck()
    Tests the functions that check if a node is parent or child of other node.
    void rootTest()
    Tests the addition of the root to the graph.
    void setUp()  
    static void setUpClass()  
    void tearDown()  
    static void tearDownClass()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • setUpClass

      public static void setUpClass()
    • tearDownClass

      public static void tearDownClass()
    • setUp

      public void setUp()
    • tearDown

      public void tearDown()
    • rootTest

      public void rootTest()
      Tests the addition of the root to the graph.
    • childrenAddition

      public void childrenAddition()
      Tests the addition of children to the graph.
    • parentalCheck

      public void parentalCheck()
      Tests the functions that check if a node is parent or child of other node.
    • descendanceCheck

      public void descendanceCheck()
      Test the functions that check if a node descends or ascends from other node.
    • obtainParentsAndChildren

      public void obtainParentsAndChildren()
      Tests the functions for obtaining parents and children of nodes.
    • levels

      public void levels()
      Test the functions for obtaining the different levels of a graph.
    • checkLeaves

      public void checkLeaves()
      Tests the method for identifying if a root is a leaf or not.
    • obtainLeaves

      public void obtainLeaves()
      Tests the methods for obtaining the leaves of the tree.