|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--suvi.GraphLayoutAlgGenTest
A [JUnit]
test for GraphLayoutAlgGen
.
Field Summary |
Fields inherited from interface suvi.api.alg.attr.FlowTrendConstants |
FT_BIT_MASK, FT_CANONICAL, FT_DOWN_LEFT, FT_DOWN_RIGHT, FT_INVERT_ORDERING_FLAG, FT_INVERT_RANKING_FLAG, FT_LEFT_DOWN, FT_LEFT_UP, FT_RIGHT_DOWN, FT_RIGHT_UP, FT_ROTATE_FLAG, FT_UP_LEFT, FT_UP_RIGHT |
Constructor Summary | |
GraphLayoutAlgGenTest()
|
Method Summary | |
void |
testGen()
Tests all algorithms generated by the GraphLayoutAlgGen -class by using them on a random graph. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GraphLayoutAlgGenTest()
Method Detail |
public void testGen()
Tests all algorithms generated by the GraphLayoutAlgGen
-class by using them on a random graph.
This randomized test has proven to be very effective by catching several bugs. The reason for the effectiviness is the randomness. It can be very difficult and time consuming to prove that all necessary cases have been tested. While this test doesn't prove the absense of bugs, it should be possible to formally prove that by running this test many times, the probability that some essential test case has not been tested, has been reduced considerably.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |