|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectname.angoca.db2sa.core.graph.model.GraphTest
public final class GraphTest
Set of tests to check the states and graph structure..
Control Version
Constructor Summary | |
---|---|
GraphTest()
Default constructor. |
Method Summary | |
---|---|
static void |
setUpBeforeClass()
Destroys the configurator instance before the tests. |
static void |
tearDownAfterClass()
Clears the configuration file name property at the end of the test. |
void |
testAddNodeInSecondPhase()
Test to try to add a node in secondPhase. |
void |
testAddNodeValidateGraph()
Tests that it is not possible to add a node in a validated graph. |
void |
testAddNullRelation1()
Tests that a relation cannot have a null child. |
void |
testAddNullRelation2()
Tests that a relation cannot have a null parent. |
void |
testAddRelation()
Tests that a graph can be in second phase. |
void |
testAddRelationInexistantChild()
Tests that the child node of the relation has to exist. |
void |
testAddRelationInexistantParent()
Tests that the parent node of the relation has to exist. |
void |
testAddRelationInSecondPhase()
Test that it's not possible to add a relation in first phase. |
void |
testAddRelationValidateGraph()
Tests that it is possible to add a relation in a validated graph. |
void |
testCongruent()
Tests that the hashcode of two equal graphs is the same. |
void |
testCongruent2()
Tests the hashcode of two graphs. |
void |
testConstructed()
Tests the construction of a graph. |
void |
testDirectlySecondPhase()
Tests that a node can not change to second phase without finishing the first phase. |
void |
testDuplicatedNode()
Tests that it is not possible to add a duplicated node. |
void |
testEmptyGrammar()
The grammar can not be empty. |
void |
testGetEndingNodeFirstPhase()
Tests that is not possible to get a endingNode in first phase. |
void |
testgetEndingNodeSecondPhase()
Tests that it cannot be possible to get EndingNode in secondPhase. |
void |
testGetStartingNode()
Tests the retrieve of starting node. |
void |
testGetStartingNodeFirstPhase()
Tests that is not possible to get a staringNode in first phase. |
void |
testgetStartingNodeSecondPhase()
Tests that it cannot be possible to get StartingNode in secondPhase. |
void |
testHelpToString()
Test the toString of HelpToken. |
void |
testInFirstPhase()
Tests that a graph can be in first phase, and add a node. |
void |
testInFirstPhaseDoubleCall()
Tests that is not possible to call first phase finished twice. |
void |
testInSecondPhase()
Tests that a graph can be in second phase. |
void |
testInvalidEndingNode1()
Test the bad construction of EndingNode. |
void |
testInvalidEndingNode21()
Test the bad construction of EndingNode. |
void |
testInvalidStartingNode1()
Test the bad construction of StartingNode. |
void |
testInvalidStartingNode2()
Test the bad construction of StartingNode. |
void |
testMerge()
Merge two graphs. |
void |
testMergeAndSimplify()
Tests to merge a graph and then simplify it. |
void |
testMergeIdentical()
Tests to merge two identical graphs. |
void |
testMergeNotValidated1()
Try to merge a non validated graph. |
void |
testMergeNotValidated2()
Try to merge a invalidated graph. |
void |
testMergeSame()
Tests to merge the same graph. |
void |
testNoAboutTokenConfigured()
When there is not about token defined, so the default one is used. |
void |
testNodeNameDuplicated()
Tests the structure of a node with two names of different children of the same parent. |
void |
testNoEndingNode()
Tests that a graph has to have ending node. |
void |
testNoHelpTokenConfigured()
When there is not help token defined, so the default one is used. |
void |
testNoLicenseTokenConfigured()
When there is not license token defined, so the default one is used. |
void |
testNoStartingNode()
Tests that a graph has to have starting node. |
void |
testNotComingFromStartingNode()
All nodes have to come from starting node. |
void |
testNotEqualsFirstPhaseGraph()
Tests the equals with a null. |
void |
testNotEqualsNull()
Tests the equals with a null. |
void |
testNotEqualsOtherObject()
Tests the equals with a null. |
void |
testNotEqualsSimilarGraph()
Tests the equals with a similar object. |
void |
testNotEqualsSimpleGraph()
Tests the equals with a null. |
void |
testNotGoingToEndingNode()
All nodes have to go to Ending node. |
void |
testNullValue()
Tests the a null value for name. |
void |
testReferencingEndingNode()
Tests referencing Ending node. |
void |
testReferencingStartingNode()
Tests referencing Starting node. |
void |
testReflexive()
Tests the reflexivity of the equals a.equals(b) == b.equals(a). |
void |
testSimplify1()
Simplify two simple graphs. |
void |
testSimplify2()
Tests to simplify a graph with an extra node an the beginning. |
void |
testSimplify3()
Tests to simplify a graph with an extra node at the end. |
void |
testSimplify4()
Tests to simplify a graph with nodes between the nodes to simplify. |
void |
testSymmetric()
Tests the symmetry of the equals. |
void |
testToString2()
Tests the toString 2. |
void |
testToStringExtraNode()
Tests the toString with extra nodes. |
void |
testToStringWithoutExtraNode()
Tests the toString without extra nodes. |
void |
testTransitivity()
Tests the transitivity of the equals. |
void |
testValidateGraph()
Graph validated. |
void |
testValidateGraphExtraNodesStructure()
Tests that it is possible to validate the graph two times with extra nodes. |
void |
testValidateGraphStructure()
Tests that it is possible to validate the graph one time. |
void |
testValidateGraphTwice()
Tests that it is possible to validate the graph two times. |
void |
testValidateGraphTwiceExtraNodesStructure()
Tests that it is possible to validate the graph two times with extra nodes. |
void |
testValidateGraphTwiceStructure()
Tests that it is possible to validate the graph two times. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphTest()
Method Detail |
---|
public static void setUpBeforeClass() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public static void tearDownAfterClass()
public void testAddNodeInSecondPhase() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testAddNodeValidateGraph() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testAddNullRelation1() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testAddNullRelation2() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testAddRelation() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testAddRelationInexistantChild() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testAddRelationInexistantParent() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testAddRelationInSecondPhase() throws AbstractDB2SAException
AbstractDB2SAException
- never.public void testAddRelationValidateGraph() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCongruent() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCongruent2() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testConstructed() throws ParameterNullException
ParameterNullException
- Never.public void testDirectlySecondPhase() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testDuplicatedNode() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testEmptyGrammar() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testGetEndingNodeFirstPhase() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testgetEndingNodeSecondPhase() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testGetStartingNode() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testGetStartingNodeFirstPhase() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testgetStartingNodeSecondPhase() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testInFirstPhase() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testInFirstPhaseDoubleCall() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testInSecondPhase() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testInvalidEndingNode1() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testInvalidEndingNode21() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testInvalidStartingNode1() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testInvalidStartingNode2() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testMerge() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testMergeAndSimplify() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testMergeIdentical() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testMergeNotValidated1() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testMergeNotValidated2() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testMergeSame() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNoAboutTokenConfigured() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNoLicenseTokenConfigured() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNoEndingNode() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNoHelpTokenConfigured() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNoStartingNode() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNotComingFromStartingNode() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNotEqualsFirstPhaseGraph() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNotEqualsNull() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNotEqualsOtherObject() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNotEqualsSimilarGraph() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNotEqualsSimpleGraph() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNotGoingToEndingNode() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNullValue() throws ParameterNullException
ParameterNullException
- Never.public void testReferencingEndingNode() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testReferencingStartingNode() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testReflexive() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testSimplify1() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testSimplify2() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testSimplify3() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testSimplify4() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testSymmetric() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testToStringExtraNode() throws AbstractDB2SAException
AbstractDB2SAException
- Neverpublic void testToStringWithoutExtraNode() throws AbstractDB2SAException
AbstractDB2SAException
- Neverpublic void testToString2() throws AbstractDB2SAException
AbstractDB2SAException
- Neverpublic void testTransitivity() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testValidateGraph() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testValidateGraphExtraNodesStructure() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testValidateGraphStructure() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testValidateGraphTwice() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testValidateGraphTwiceExtraNodesStructure() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNodeNameDuplicated() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testValidateGraphTwiceStructure() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testHelpToString() throws InvalidGraphNodeException
InvalidGraphNodeException
- Never.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |