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

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

public final class AboutNodeTest
extends Object

These are the tests for the AboutNode class.

Control Version

Version:
1.1.2 2010-02-14
Author:
Andres Gomez Casanova (AngocA)

Constructor Summary
AboutNodeTest()
          Default constructor.
 
Method Summary
 void testAboutInformationFromFile()
          Test the toString method with about information file.
 void testCongruent()
          Tests if two consecutive calls returns the same value.
 void testDefaultAboutInformation()
          Test the toString method with no about information file.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AboutNodeTest

public AboutNodeTest()
Default constructor.

Method Detail

testCongruent

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

Throws:
InvalidGraphNodeException - Never

testDefaultAboutInformation

public void testDefaultAboutInformation()
                                 throws InvalidGraphNodeException
Test the toString method with no about information file.

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

testAboutInformationFromFile

public void testAboutInformationFromFile()
                                  throws InvalidGraphNodeException
Test the toString method with about information file.

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.


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