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

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

public final class LicenseNodeTest
extends Object

These are the tests for the LicenseTest class.

Control Version

Version:
1.0.0 2010-05-17
Author:
Andres Gomez Casanova (AngocA)

Constructor Summary
LicenseNodeTest()
          Default constructor.
 
Method Summary
 void testCongruent()
          Tests if two consecutive calls returns the same value.
 void testDefaultLicense()
          Test the toString method with no license 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 testLicenseFromFile()
          Test the toString method with license file.
 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

LicenseNodeTest

public LicenseNodeTest()
Default constructor.

Method Detail

testCongruent

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

Throws:
InvalidGraphNodeException - Never

testDefaultLicense

public void testDefaultLicense()
                        throws InvalidGraphNodeException
Test the toString method with no license 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

testLicenseFromFile

public void testLicenseFromFile()
                         throws InvalidGraphNodeException
Test the toString method with license 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.