|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectname.angoca.db2sa.core.graph.model.GraphNodeTest
public final class GraphNodeTest
These are the test for a node in the graph.
Control Version
Constructor Summary | |
---|---|
GraphNodeTest()
Default constructor. |
Method Summary | |
---|---|
void |
testAddEndingNodeParent()
Test that a graph node be referenced by EndingNode as parent of it. |
void |
testAddNullChild()
Test that a graph node cannot receive a null way. |
void |
testAddNullParent()
Test that a graph node cannot receive a null parent. |
void |
testAddTwiceSameChild()
Adds twice the same child node. |
void |
testAddTwiceSameParent()
Adds twice the same parent node. |
void |
testCongruent()
Tests if two consecutive calls returns the same value. |
void |
testConstructorNull1()
Tests that the graph node has to receive a not null parameter. |
void |
testConstructorNull2()
Tests that the graph node has to receive a not null parameter. |
void |
testEqualsDifferentChildren()
Test two identical nodes with different children. |
void |
testEqualsDifferentMixed()
Test two different nodes (reserved and non reserved). |
void |
testEqualsDifferentNotReserved()
Test two different nodes (non reserved). |
void |
testEqualsDifferentParents()
Test two identical nodes with different parents. |
void |
testEqualsDifferentReserved()
Test two different nodes (reserved). |
void |
testEqualsMoreChildren()
Test two identical nodes with one of them with more children. |
void |
testEqualsNotReserved()
Test two identical nodes that represents a not reserved word. |
void |
testEqualsNull()
Test equals with other null. |
void |
testEqualsOtherObject()
Test equals with other object. |
void |
testEqualsReserved()
Test two identical nodes that represents a reserved word. |
void |
testEqualsSameChildren()
Test two identical nodes with same children. |
void |
testHashCodeDifferent()
Test a the hashcode of two different nodes. |
void |
testHashCodeDifferentWithChildren()
Test a the hashcode of two different objects. |
void |
testHashCodeIdenticalNotReserved()
Test a the hashcode of two identical non reserved nodes. |
void |
testHashCodeIdenticalReserved()
Test a the hashcode of two identical reserved nodes. |
void |
testInvalidName()
Test the creation of a node with an invalid name. |
void |
testReferencingStartingNode()
Tests that a node cannot reference to StartingNode. |
void |
testRemoveChild()
Removes a child from the list of children. |
void |
testRemoveNullChild()
Tries to remove a null child. |
void |
testRemoveNullParent()
Tries to remove a null parent. |
void |
testRemoveParent()
Removes a parent from the list of parents. |
void |
testRepresentCapitalReservedFalse()
Represents a reserved word in capitals with a reserved word not in capitals. |
void |
testRepresentCapitalReservedTrue()
Represents a reserved word in capitals. |
void |
testRepresentNotReservedTrue()
Represents a word with a not reserved word. |
void |
testRepresentReservedFalse()
Represents two different reserved words. |
void |
testRepresentReservedTrue()
Represents a reserved word. |
void |
testRepresentsNull()
Tests the represents method that can not receive a null parameter. |
void |
testSeveralOperations()
Tests addParent. |
void |
testSimpleMethods()
Tests the getter methods. |
void |
testSymmetricNotReserved()
Tests the symmetry of equals not reserved. |
void |
testSymmetricReserved()
Tests the symmetry of equals reserved. |
void |
testToStringNotReserved()
Test a node that is not a reserved word. |
void |
testToStringReserved()
Test a node that is a reserved word. |
void |
testToStringWithChildren()
Test a node with children. |
void |
testToStringWithParents()
Test a node with parents. |
void |
testTransitivity()
Tests the transitivity of the equals. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphNodeTest()
Method Detail |
---|
public void testAddEndingNodeParent() throws AbstractGraphException
AbstractGraphException
- Never.public void testAddNullChild() throws AbstractGraphException
AbstractGraphException
- Never.public void testAddNullParent() throws AbstractGraphException
AbstractGraphException
- Never.public void testAddTwiceSameChild() throws AbstractGraphException
AbstractGraphException
- Never.public void testAddTwiceSameParent() throws AbstractGraphException
AbstractGraphException
- Never.public void testCongruent() throws InvalidGraphNodeException
InvalidGraphNodeException
- Neverpublic void testConstructorNull1() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testConstructorNull2() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testEqualsDifferentChildren() throws AbstractGraphException
AbstractGraphException
- Neverpublic void testEqualsDifferentMixed() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testEqualsDifferentNotReserved() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testEqualsDifferentParents() throws AbstractGraphException
AbstractGraphException
- Neverpublic void testEqualsDifferentReserved() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testEqualsMoreChildren() throws AbstractGraphException
AbstractGraphException
- Never.public void testEqualsNotReserved() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testEqualsNull() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testEqualsOtherObject() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testEqualsReserved() throws InvalidGraphNodeException
InvalidGraphNodeException
public void testEqualsSameChildren() throws AbstractGraphException
AbstractGraphException
- Never.public void testHashCodeDifferent() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testHashCodeDifferentWithChildren() throws AbstractGraphException
AbstractGraphException
- Never.public void testHashCodeIdenticalNotReserved() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testHashCodeIdenticalReserved() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testInvalidName() throws InvalidGraphNodeException
InvalidGraphNodeException
- Neverpublic void testReferencingStartingNode() throws AbstractGraphException
AbstractGraphException
- Never.public void testRemoveChild() throws AbstractGraphException
AbstractGraphException
- Never.public void testRemoveNullChild() throws AbstractGraphException
AbstractGraphException
- Never.public void testRemoveNullParent() throws AbstractGraphException
AbstractGraphException
- Never.public void testRemoveParent() throws AbstractGraphException
AbstractGraphException
- Never.public void testRepresentCapitalReservedFalse() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testRepresentCapitalReservedTrue() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testRepresentNotReservedTrue() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testRepresentReservedFalse() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testRepresentReservedTrue() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testRepresentsNull() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testSeveralOperations() throws AbstractGraphException
AbstractGraphException
- Never.public void testSimpleMethods() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testSymmetricNotReserved() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testSymmetricReserved() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testToStringNotReserved() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testToStringReserved() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.public void testToStringWithChildren() throws AbstractGraphException
AbstractGraphException
- Never.public void testToStringWithParents() throws AbstractGraphException
AbstractGraphException
- Never.public void testTransitivity() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |