gumbo.util.relation
Class AbstractRelationTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--gumbo.util.relation.AbstractRelationTest
All Implemented Interfaces:
junit.framework.Test

public class AbstractRelationTest
extends junit.framework.TestCase

Version:
$Revision: 1.1 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.

Constructor Summary
AbstractRelationTest(java.lang.String name)
           
 
Method Summary
static Relation buildNetwork(int size)
          Builds a loop of TestRelation with TestDelegator, with each relation having the previous one as its "friend" connection.
static Relationship buildRelationship(int size)
          Builds a TestRelationship of TestRelation with TestDelegator, with no connections between relations ("friend" is null).
protected  java.lang.Object doSerialization(java.lang.Object objOut)
           
static void main(java.lang.String[] args)
           
protected  void setUp()
           
protected  void setupSerialization()
           
static junit.framework.Test suite()
           
 void testAddRelations()
           
 void testDifferentRelationship()
           
 void testRemoveRelations()
           
 void testSerialDeadRelation()
           
 void testSerialLargeNetwork()
           
 void testSerialLargeRelationship()
           
 void testSerialLiveRelation()
           
 void testSerialRelationship()
           
 void testSerialSmallNetwork()
           
 void testSerialSmallRelationship()
           
 void testSetNonNullRelationship()
           
 void testSetNullRelationship()
           
 void testSetSameRelationship()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

AbstractRelationTest

public AbstractRelationTest(java.lang.String name)
Method Detail

main

public static void main(java.lang.String[] args)

suite

public static junit.framework.Test suite()

testSetNonNullRelationship

public void testSetNonNullRelationship()

testSetNullRelationship

public void testSetNullRelationship()

testSetSameRelationship

public void testSetSameRelationship()

testDifferentRelationship

public void testDifferentRelationship()

testAddRelations

public void testAddRelations()

testRemoveRelations

public void testRemoveRelations()

testSerialDeadRelation

public void testSerialDeadRelation()

testSerialLiveRelation

public void testSerialLiveRelation()

testSerialRelationship

public void testSerialRelationship()

testSerialSmallRelationship

public void testSerialSmallRelationship()

testSerialLargeRelationship

public void testSerialLargeRelationship()

testSerialSmallNetwork

public void testSerialSmallNetwork()

testSerialLargeNetwork

public void testSerialLargeNetwork()

setUp

protected void setUp()
Overrides:
setUp in class junit.framework.TestCase

setupSerialization

protected void setupSerialization()

doSerialization

protected java.lang.Object doSerialization(java.lang.Object objOut)

buildRelationship

public static Relationship buildRelationship(int size)
Builds a TestRelationship of TestRelation with TestDelegator, with no connections between relations ("friend" is null).


buildNetwork

public static Relation buildNetwork(int size)
Builds a loop of TestRelation with TestDelegator, with each relation having the previous one as its "friend" connection.