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

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

public final class EndingNodeTest
extends Object

These are the tests for the EndingNode class.

Control Version

Version:
1.5.1 2009-11-22
Author:
Andres Gomez Casanova (AngocA)

Constructor Summary
EndingNodeTest()
          Default constructor.
 
Method Summary
 void testAddWay()
          Tests that an EndingNode cannot have children.
 void testCongruent()
          Tests if two consecutive calls returns the same value.
 void testDifferentStartingNodeHashCode()
          Test that the hash code is different to hashCode of StartingNode.
 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

EndingNodeTest

public EndingNodeTest()
Default constructor.

Method Detail

testAddWay

public void testAddWay()
                throws AbstractGraphException
Tests that an EndingNode cannot have children.

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 StartingNode.

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.