xmlBlaster 2.1.0 API

org.xmlBlaster.test.classtest.queue
Class DesignQueues2008InitialTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.xmlBlaster.test.classtest.queue.DesignQueues2008InitialTest
All Implemented Interfaces:
junit.framework.Test

public class DesignQueues2008InitialTest
extends junit.framework.TestCase

Test


Nested Class Summary
 class DesignQueues2008InitialTest.TestInfo
           
 
Field Summary
protected  Global glob
           
private  I_Info info
           
private static java.util.logging.Logger log
           
private  java.lang.String ME
           
private  XBMeatFactory meatFactory
           
private  I_DbPool pool
           
private  java.util.Random random
           
private  XBRefFactory refFactory
           
private  XBStoreFactory storeFactory
           
 
Constructor Summary
DesignQueues2008InitialTest(Global glob, java.lang.String name)
           
 
Method Summary
private  XBMeat createSimpleMeat(long id, int size)
          If the size is negative then a random size is choosen between 1 and the abs value specified
private  XBRef createSimpleRef(long id, long meatId, long storeId, XBMeat meat)
           
private  XBStore createSimpleStore(long id, java.lang.String node, java.lang.String storeType, java.lang.String storePostfix)
           
static void main(java.lang.String[] args)
           java org.xmlBlaster.test.classtest.queue.JdbcManagerCommonTableTest
protected  void setUp()
           
static junit.framework.Test suite()
          Method is used by TestRunner to load these tests
 void tearDown()
           
 void testEncoding()
           
 void testManyEntries()
          Tests the performance of many entries (50000 entries).
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Field Detail

log

private static final java.util.logging.Logger log

ME

private java.lang.String ME

glob

protected Global glob

pool

private I_DbPool pool

random

private java.util.Random random

info

private I_Info info

storeFactory

private XBStoreFactory storeFactory

meatFactory

private XBMeatFactory meatFactory

refFactory

private XBRefFactory refFactory
Constructor Detail

DesignQueues2008InitialTest

public DesignQueues2008InitialTest(Global glob,
                                   java.lang.String name)
Method Detail

setUp

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

createSimpleMeat

private XBMeat createSimpleMeat(long id,
                                int size)
If the size is negative then a random size is choosen between 1 and the abs value specified

Parameters:
id -
size -
Returns:

createSimpleStore

private XBStore createSimpleStore(long id,
                                  java.lang.String node,
                                  java.lang.String storeType,
                                  java.lang.String storePostfix)

createSimpleRef

private XBRef createSimpleRef(long id,
                              long meatId,
                              long storeId,
                              XBMeat meat)

testEncoding

public void testEncoding()

testManyEntries

public void testManyEntries()
Tests the performance of many entries (50000 entries). The size of the meat is a normal size of 10 kB.


tearDown

public void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
Method is used by TestRunner to load these tests


main

public static void main(java.lang.String[] args)
  java org.xmlBlaster.test.classtest.queue.JdbcManagerCommonTableTest
 


xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.