planet.test
Class TestPool
java.lang.Object
planet.generic.commonapi.GenericApp
planet.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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX
public static int MAX
- Numer of messages (default 100.000).
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
main
public static void main(java.lang.String[] args)
- Make a new reference of this class, that runs the test.
- Parameters:
args
- Nothing.