|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectname.angoca.db2sa.core.lexical.model.TokenTest
public final class TokenTest
This class tests the Token object and its principal methods.
Control Version
| Constructor Summary | |
|---|---|
TokenTest()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
testCongruent()
Tests if two consecutive calls returns the same value. |
void |
testCreation()
A token cannot be a empty string. |
void |
testEqualsDifferentObject()
Tests the equals method with two different objects. |
void |
testEqualsIdenticalObject()
Tests the equals method with two identical objects. |
void |
testEqualsNull()
Tests the equal method with a null value. |
void |
testHashCode()
Tests that the hashcode is different to 1, 0 and -1. |
void |
testHashCodeDifferentObject()
Tests that the hashcode of two different objects are different. |
void |
testHashCodeIdenticalObject()
Test that the hashcode of two objects with the same parameters have the same hashcode. |
void |
testSimpleMethods()
Tests the simple methods. |
void |
testSymmetric()
Tests the symmetry of equals. |
void |
testTokenNullParam()
Tests that the constructor cannot receive a null parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TokenTest()
| Method Detail |
|---|
public void testCongruent()
throws InvalidTokenException
InvalidTokenException - Never.
public void testCreation()
throws InvalidTokenException
InvalidTokenException - Always, this method test this thrown.
public void testEqualsDifferentObject()
throws InvalidTokenException
InvalidTokenException - Never.
public void testEqualsIdenticalObject()
throws InvalidTokenException
InvalidTokenException - Never.
public void testEqualsNull()
throws InvalidTokenException
InvalidTokenException - Never.
public void testHashCode()
throws InvalidTokenException
InvalidTokenException - Never.
public void testHashCodeDifferentObject()
throws InvalidTokenException
InvalidTokenException - Never.
public void testHashCodeIdenticalObject()
throws InvalidTokenException
InvalidTokenException - Never.
public void testSimpleMethods()
throws InvalidTokenException
InvalidTokenException - Never.
public void testSymmetric()
throws InvalidTokenException
InvalidTokenException - Never
public void testTokenNullParam()
throws InvalidTokenException
InvalidTokenException - Never.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
