planet.test
Class IdTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byplanet.test.IdTest
All Implemented Interfaces:
junit.framework.Test

public class IdTest
extends junit.framework.TestCase

Make different tests to build Ids with 32, 64, 96, 128 and 160 bits. The Id's are generated randomly and circular manner. At last, the number of generated Ids are 100 and 1000.

Author:
Ruben Mondejar , Jordi Pujol

Constructor Summary
IdTest(java.lang.String name)
           
 
Method Summary
protected  void setUp()
           
static junit.framework.Test suite()
           
 void test100_128_circular()
          Make a test building Id's with 128 bits and network topology Circular.
 void test100_128_random()
          Make a test building Id's with 128 bits and network topology Random.
 void test100_160_circular()
          Make a test building Id's with 160 bits and network topology Circular.
 void test100_160_random()
          Make a test building Id's with 160 bits and network topology Random.
 void test100_32_circular()
          Make a test building Id's with 32 bits and network topology Circular.
 void test100_32_random()
          Make a test building Id's with 32 bits and network topology Random.
 void test100_64_circular()
          Make a test building Id's with 64 bits and network topology Circular.
 void test100_64_random()
          Make a test building Id's with 64 bits and network topology Random.
 void test100_96_circular()
          Make a test building Id's with 96 bits and network topology Circular.
 void test100_96_random()
          Make a test building Id's with 96 bits and network topology Random.
 void test1000_128_circular()
          Make a test building Id's with 128 bits and network topology Circular.
 void test1000_128_random()
          Make a test building Id's with 128 bits and network topology Random.
 void test1000_160_circular()
          Make a test building Id's with 160 bits and network topology Circular.
 void test1000_160_random()
          Make a test building Id's with 160 bits and network topology Random.
 void test1000_32_circular()
          Make a test building Id's with 32 bits and network topology Circular.
 void test1000_32_random()
          Make a test building Id's with 32 bits and network topology Random.
 void test1000_64_circular()
          Make a test building Id's with 64 bits and network topology Circular.
 void test1000_64_random()
          Make a test building Id's with 64 bits and network topology Random.
 void test1000_96_circular()
          Make a test building Id's with 96 bits and network topology Circular.
 void test1000_96_random()
          Make a test building Id's with 96 bits and network topology Random.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdTest

public IdTest(java.lang.String name)
       throws InitializationException
Method Detail

setUp

protected void setUp()

suite

public static junit.framework.Test suite()

test100_32_random

public void test100_32_random()
                       throws java.lang.Exception
Make a test building Id's with 32 bits and network topology Random. Network size = 100 nodes.

Throws:
java.lang.Exception

test100_64_random

public void test100_64_random()
                       throws java.lang.Exception
Make a test building Id's with 64 bits and network topology Random. Network size = 100 nodes.

Throws:
java.lang.Exception

test100_96_random

public void test100_96_random()
                       throws java.lang.Exception
Make a test building Id's with 96 bits and network topology Random. Network size = 100 nodes.

Throws:
java.lang.Exception

test100_128_random

public void test100_128_random()
                        throws java.lang.Exception
Make a test building Id's with 128 bits and network topology Random. Network size = 100 nodes.

Throws:
java.lang.Exception

test100_160_random

public void test100_160_random()
                        throws java.lang.Exception
Make a test building Id's with 160 bits and network topology Random. Network size = 100 nodes.

Throws:
java.lang.Exception

test100_32_circular

public void test100_32_circular()
                         throws java.lang.Exception
Make a test building Id's with 32 bits and network topology Circular. Network size = 100 nodes.

Throws:
java.lang.Exception

test100_64_circular

public void test100_64_circular()
                         throws java.lang.Exception
Make a test building Id's with 64 bits and network topology Circular. Network size = 100 nodes.

Throws:
java.lang.Exception

test100_96_circular

public void test100_96_circular()
                         throws java.lang.Exception
Make a test building Id's with 96 bits and network topology Circular. Network size = 100 nodes.

Throws:
java.lang.Exception

test100_128_circular

public void test100_128_circular()
                          throws java.lang.Exception
Make a test building Id's with 128 bits and network topology Circular. Network size = 100 nodes.

Throws:
java.lang.Exception

test100_160_circular

public void test100_160_circular()
                          throws java.lang.Exception
Make a test building Id's with 160 bits and network topology Circular. Network size = 100 nodes.

Throws:
java.lang.Exception

test1000_32_random

public void test1000_32_random()
                        throws java.lang.Exception
Make a test building Id's with 32 bits and network topology Random. Network size = 1000 nodes.

Throws:
java.lang.Exception

test1000_64_random

public void test1000_64_random()
                        throws java.lang.Exception
Make a test building Id's with 64 bits and network topology Random. Network size = 1000 nodes.

Throws:
java.lang.Exception

test1000_96_random

public void test1000_96_random()
                        throws java.lang.Exception
Make a test building Id's with 96 bits and network topology Random. Network size = 1000 nodes.

Throws:
java.lang.Exception

test1000_128_random

public void test1000_128_random()
                         throws java.lang.Exception
Make a test building Id's with 128 bits and network topology Random. Network size = 1000 nodes.

Throws:
java.lang.Exception

test1000_160_random

public void test1000_160_random()
                         throws java.lang.Exception
Make a test building Id's with 160 bits and network topology Random. Network size = 1000 nodes.

Throws:
java.lang.Exception

test1000_32_circular

public void test1000_32_circular()
                          throws java.lang.Exception
Make a test building Id's with 32 bits and network topology Circular. Network size = 1000 nodes.

Throws:
java.lang.Exception

test1000_64_circular

public void test1000_64_circular()
                          throws java.lang.Exception
Make a test building Id's with 64 bits and network topology Circular. Network size = 1000 nodes.

Throws:
java.lang.Exception

test1000_96_circular

public void test1000_96_circular()
                          throws java.lang.Exception
Make a test building Id's with 96 bits and network topology Circular. Network size = 1000 nodes.

Throws:
java.lang.Exception

test1000_128_circular

public void test1000_128_circular()
                           throws java.lang.Exception
Make a test building Id's with 128 bits and network topology Circular. Network size = 1000 nodes.

Throws:
java.lang.Exception

test1000_160_circular

public void test1000_160_circular()
                           throws java.lang.Exception
Make a test building Id's with 160 bits and network topology Circular. Network size = 1000 nodes.

Throws:
java.lang.Exception