name.angoca.db2sa.core.graph.model
Class StartingNodeTest

Package class diagram package StartingNodeTest
java.lang.Object
  extended by name.angoca.db2sa.core.graph.model.StartingNodeTest

public final class StartingNodeTest
extends Object

These are the tests for the StartingNode class.

Control Version

Version:
1.5.0 2009-11-08
Author:
Andres Gomez Casanova (AngocA)

Constructor Summary
StartingNodeTest()
          Default constructor.
 
Method Summary
 void testAddParent()
          Tests that an StartingNode cannot have parents.
 void testCongruent()
          Tests if two consecutive calls returns the same value.
 void testDifferentStartingNodeHashCode()
          Test that the hash code is different to hashCode of EndingNode.
 void testEqualsNodeNotReserved()
          Test the equals method with a graph node non reserved.
 void testEqualsNodeReserved()
          Test the equals method with a graph node reserved.
 void testHashCode()
          Test that the hash code is different to 1, 0 and -1.
 void testNullEqualsObject()
          Test the equals method to a null.
 void testOtherTypeEqualsObject()
          Test the equals method to a different type of object.
 void testSameEqualsObject()
          Test the equals method to the same object.
 void testSameHashCode()
          Test that the hash code is the same.
 void testSymmetric()
          Tests the symmetry of equals.
 void testToString()
          Test the toString method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartingNodeTest

public StartingNodeTest()
Default constructor.

Method Detail

testAddParent

public void testAddParent()
                   throws AbstractGraphException
Tests that an StartingNode cannot have parents.

Throws:
AbstractGraphException - Never.

testCongruent

public void testCongruent()
                   throws InvalidGraphNodeException
Tests if two consecutive calls returns the same value.

Throws:
InvalidGraphNodeException - Never

testDifferentStartingNodeHashCode

public void testDifferentStartingNodeHashCode()
                                       throws InvalidGraphNodeException
Test that the hash code is different to hashCode of EndingNode.

Throws:
InvalidGraphNodeException - Never.

testEqualsNodeNotReserved

public void testEqualsNodeNotReserved()
                               throws InvalidGraphNodeException
Test the equals method with a graph node non reserved.

Throws:
InvalidGraphNodeException - Never.

testEqualsNodeReserved

public void testEqualsNodeReserved()
                            throws InvalidGraphNodeException
Test the equals method with a graph node reserved.

Throws:
InvalidGraphNodeException - Never.

testHashCode

public void testHashCode()
                  throws InvalidGraphNodeException
Test that the hash code is different to 1, 0 and -1.

Throws:
InvalidGraphNodeException - Never.

testNullEqualsObject

public void testNullEqualsObject()
                          throws InvalidGraphNodeException
Test the equals method to a null.

Throws:
InvalidGraphNodeException - Never.

testOtherTypeEqualsObject

public void testOtherTypeEqualsObject()
                               throws InvalidGraphNodeException
Test the equals method to a different type of object.

Throws:
InvalidGraphNodeException - Never.

testSameEqualsObject

public void testSameEqualsObject()
                          throws InvalidGraphNodeException
Test the equals method to the same object.

Throws:
InvalidGraphNodeException - Never.

testSameHashCode

public void testSameHashCode()
                      throws InvalidGraphNodeException
Test that the hash code is the same.

Throws:
InvalidGraphNodeException - Never.

testSymmetric

public void testSymmetric()
                   throws InvalidGraphNodeException
Tests the symmetry of equals.

Throws:
InvalidGraphNodeException - Never.

testToString

public void testToString()
                  throws InvalidGraphNodeException
Test the toString method.

Throws:
InvalidGraphNodeException - Never.


Andres Gomez Casanova (AngocA) 2009-2010 Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.