planet.test
Class TestPool

java.lang.Object
  extended byplanet.generic.commonapi.GenericApp
      extended byplanet.test.TestPool

public class TestPool
extends GenericApp

Test the MessagePool, building 10.000 messages, two times in this sequence:

1. Build 10.000 nodes
2. Free theese 10.000 nodes
3. Build 10.000 nodes

In the last case, don't build really 10.000, only returns a reference of one RouteMessage, created in the first point.

Author:
Pedro García, Carles Pairot, Ruben Mondejar, Jordi Pujol

Field Summary
static int MAX
          Numer of messages (default 100.000).
 
Constructor Summary
TestPool()
          Make the goal test of this class:

1.
 
Method Summary
static void main(java.lang.String[] args)
          Make a new reference of this class, that runs the test.
 
Methods inherited from class planet.generic.commonapi.GenericApp
timeElapsedInSeconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX

public static int MAX
Numer of messages (default 100.000).

Constructor Detail

TestPool

public TestPool()
         throws InitializationException
Make the goal test of this class:

1. Build MAX nodes
2. Free theese MAX nodes
3. Build MAX nodes

Throws:
InitializationException - during context initialization
Method Detail

main

public static void main(java.lang.String[] args)
Make a new reference of this class, that runs the test.

Parameters:
args - Nothing.