|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.avalon.excalibur.pool.test.PoolComparisonProfileAbstract
Used as a basis for the PoolComparisonProfile Tests
| Nested Class Summary | |
static class |
PoolComparisonProfileAbstract.LargePoolable |
static class |
PoolComparisonProfileAbstract.MediumPoolable |
static class |
PoolComparisonProfileAbstract.NoPoolingPoolDummy class used for timing test cases where no pooling is done. |
static class |
PoolComparisonProfileAbstract.SmallPoolable |
| Field Summary | |
protected Logger |
m_logger |
protected Logger |
m_poolLogger |
protected static int |
TEST_SIZEThe TEST_SIZE defines the overall size of the tests. |
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
PoolComparisonProfileAbstract(java.lang.String name) |
|
| Method Summary | |
protected void |
generalTest(java.lang.String name, Pool poolA, Pool poolB, int gets, ObjectFactory factory)The guts of the various test cases. |
protected abstract long |
getPoolRunTime(Pool pool, int gets) |
protected java.lang.String |
getShortClassName(java.lang.Object o) |
protected void |
resetMemory() |
void |
testCompare_HardResourceLimitingPool_And_ResourceLimitingPool_Max10_Gets10_MediumPoolables()Compare the HardResourceLimitingPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a HardResourceLimitingPool. |
void |
testCompare_HardResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_LargePoolables()Compare the HardResourceLimitingPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a HardResourceLimitingPool. |
void |
testCompare_HardResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_SmallPoolables()Compare the HardResourceLimitingPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a HardResourceLimitingPool. |
void |
testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_LargePoolables()Compare the SoftResourceLimitingPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SoftResourceLimitingPool. |
void |
testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_MediumPoolables()Compare the SoftResourceLimitingPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SoftResourceLimitingPool. |
void |
testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_SmallPoolables()Compare the SoftResourceLimitingPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SoftResourceLimitingPool. |
void |
testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets200_LargePoolables()Compare the SoftResourceLimitingPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SoftResourceLimitingPool. |
void |
testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets200_MediumPoolables()Compare the SoftResourceLimitingPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SoftResourceLimitingPool. |
void |
testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets200_SmallPoolables()Compare the SoftResourceLimitingPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SoftResourceLimitingPool. |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, 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, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final int TEST_SIZE
protected Logger m_logger
protected Logger m_poolLogger
| Constructor Detail |
public PoolComparisonProfileAbstract(java.lang.String name)
| Method Detail |
public void testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_SmallPoolables()
throws java.lang.Exception
Test will use pools with a max size of 100, while getting up to 100 at a time, Poolables are small objects.
java.lang.Exception
public void testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets200_SmallPoolables()
throws java.lang.Exception
Test will use pools with a max size of 100, while getting up to 200 at a time, Poolables are small objects.
java.lang.Exception
public void testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_MediumPoolables()
throws java.lang.Exception
Test will use pools with a max size of 100, while getting up to 100 at a time, Poolables are medium objects.
java.lang.Exception
public void testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets200_MediumPoolables()
throws java.lang.Exception
Test will use pools with a max size of 100, while getting up to 200 at a time, Poolables are medium objects.
java.lang.Exception
public void testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_LargePoolables()
throws java.lang.Exception
Test will use pools with a max size of 100, while getting up to 100 at a time, Poolables are large objects.
java.lang.Exception
public void testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets200_LargePoolables()
throws java.lang.Exception
Test will use pools with a max size of 100, while getting up to 200 at a time, Poolables are large objects.
java.lang.Exception
public void testCompare_HardResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_SmallPoolables()
throws java.lang.Exception
Test will use pools with a max size of 100, while getting up to 100 at a time, Poolables are small objects.
java.lang.Exception
public void testCompare_HardResourceLimitingPool_And_ResourceLimitingPool_Max10_Gets10_MediumPoolables()
throws java.lang.Exception
Test will use pools with a max size of 100, while getting up to 100 at a time, Poolables are medium objects.
java.lang.Exception
public void testCompare_HardResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_LargePoolables()
throws java.lang.Exception
Test will use pools with a max size of 100, while getting up to 100 at a time, Poolables are large objects.
java.lang.Exceptionprotected void resetMemory()
protected java.lang.String getShortClassName(java.lang.Object o)
protected abstract long getPoolRunTime(Pool pool,
int gets)
throws java.lang.Exception
java.lang.Exception
protected void generalTest(java.lang.String name,
Pool poolA,
Pool poolB,
int gets,
ObjectFactory factory)
throws java.lang.Exception
java.lang.Exception
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||