name.angoca.db2sa.core.syntactic.model
Class GraphAnswerTest

Package class diagram package GraphAnswerTest
java.lang.Object
  extended by name.angoca.db2sa.core.syntactic.model.GraphAnswerTest

public final class GraphAnswerTest
extends Object

These are the tests for the GraphAnswer. It tests only the object.

Control Version

Version:
1.3.1 2010-05-14
Author:
Andres Gomez Casanova (AngocA)

Constructor Summary
GraphAnswerTest()
          Default constructor.
 
Method Summary
 void testCongruent()
          Tests if two consecutive calls returns the same value.
 void testEqualsDifferentObject()
          Tests the equals with a similar but not equal object.
 void testEqualsNull()
          Tests the method equals with a null.
 void testEqualsObjectFalse()
          Tests the equals method with two different objects.
 void testEqualsObjectTrue()
          Tests the equals method with two identical objects.
 void testGraphAnswerNull1()
          Tests the constructor with a null parameter.
 void testGraphAnswerNull2()
          Tests the constructor with a null parameter.
 void testHashCode()
          Tests if the hashcode method does not return 0, 1 or -1.
 void testHashCodeDifferent()
          This tests the hashCode method with two different objects.
 void testHashCodeIdentical()
          This tests the hashCode method with two identical objects.
 void testSimpleMethods()
          Test the simple methods.
 void testSymmetric()
          Tests the symmetry of equals.
 void testToString()
          Test the toString method.
 void testToString2()
          Test the toString method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphAnswerTest

public GraphAnswerTest()
Default constructor.

Method Detail

testCongruent

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

Throws:
InvalidTokenException - Never.

testEqualsDifferentObject

public void testEqualsDifferentObject()
                               throws InvalidTokenException
Tests the equals with a similar but not equal object.

Throws:
InvalidTokenException - Never.

testEqualsNull

public void testEqualsNull()
                    throws InvalidTokenException
Tests the method equals with a null.

Throws:
InvalidTokenException - Never.

testEqualsObjectFalse

public void testEqualsObjectFalse()
                           throws InvalidTokenException
Tests the equals method with two different objects.

Throws:
InvalidTokenException - Never.

testEqualsObjectTrue

public void testEqualsObjectTrue()
                          throws InvalidTokenException
Tests the equals method with two identical objects.

Throws:
InvalidTokenException - Never.

testGraphAnswerNull1

public void testGraphAnswerNull1()
Tests the constructor with a null parameter.


testGraphAnswerNull2

public void testGraphAnswerNull2()
Tests the constructor with a null parameter.


testHashCode

public void testHashCode()
                  throws InvalidTokenException
Tests if the hashcode method does not return 0, 1 or -1.

Throws:
InvalidTokenException - Never.

testHashCodeDifferent

public void testHashCodeDifferent()
                           throws InvalidTokenException
This tests the hashCode method with two different objects.

Throws:
InvalidTokenException - never.

testHashCodeIdentical

public void testHashCodeIdentical()
                           throws InvalidTokenException
This tests the hashCode method with two identical objects.

Throws:
InvalidTokenException - never.

testSimpleMethods

public void testSimpleMethods()
                       throws AbstractDB2SAException
Test the simple methods.

Throws:
AbstractDB2SAException - Never.

testSymmetric

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

Throws:
InvalidTokenException - Never.

testToString

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

Throws:
InvalidTokenException - Never.

testToString2

public void testToString2()
                   throws InvalidTokenException
Test the toString method.

Throws:
InvalidTokenException - Never.


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