|
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.excalibur.mpool.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, ClassInstanceObjectFactory factory)The guts of the various test cases. |
protected void |
generalTest(java.lang.String name, Pool poolA, Pool poolB, int gets, ClassInstanceObjectFactory factory)The guts of the various test cases. |
protected abstract long |
getPoolRunTime(Pool pool, int gets) |
protected abstract long |
getPoolRunTime(Pool pool, int gets) |
protected java.lang.String |
getShortClassName(java.lang.Object o) |
protected void |
resetMemory() |
void |
testCompare_FixedSizePool_And_BlockingFixedSizePool_Max100_Gets100_LargePoolables()Compare the FixedSizePool and BlockingFixedSizePool when the BlockingFixedSizePool is configured to act like a FixedSizePool. |
void |
testCompare_FixedSizePool_And_BlockingFixedSizePool_Max100_Gets100_MediumPoolables()Compare the FixedSizePool and BlockingFixedSizePool when the BlockingFixedSizePool is configured to act like a FixedSizePool. |
void |
testCompare_FixedSizePool_And_BlockingFixedSizePool_Max100_Gets100_SmallPoolables()Compare the FixedSizePool and BlockingFixedSizePool when the BlockingFixedSizePool is configured to act like a FixedSizePool. |
void |
testCompare_FixedSizePool_And_ResourceLimitingPool_Max100_Gets100_LargePoolables()Compare the FixedSizePool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a FixedSizePool. |
void |
testCompare_FixedSizePool_And_ResourceLimitingPool_Max100_Gets100_SmallPoolables()Compare the FixedSizePool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a FixedSizePool. |
void |
testCompare_FixedSizePool_And_VariableSizePool_Max100_Gets100_LargePoolables()Compare the FixedSizePool and VariableSizePool when the VariableSizePool is configured to act like a FixedSizePool. |
void |
testCompare_FixedSizePool_And_VariableSizePool_Max100_Gets100_MediumPoolables()Compare the FixedSizePool and VariableSizePool when the VariableSizePool is configured to act like a FixedSizePool. |
void |
testCompare_FixedSizePool_And_VariableSizePool_Max100_Gets100_SmallPoolables()Compare the FixedSizePool and VariableSizePool when the VariableSizePool is configured to act like a FixedSizePool. |
void |
testCompare_VariableSizePool_And_ResourceLimitingPool_Max100_Gets100_LargePoolables()Compare the VariableSizePool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a VariableSizePool. |
void |
testCompare_VariableSizePool_And_ResourceLimitingPool_Max100_Gets100_MediumPoolables()Compare the VariableSizePool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a VariableSizePool. |
void |
testCompare_VariableSizePool_And_ResourceLimitingPool_Max100_Gets100_SmallPoolables()Compare the VariableSizePool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a VariableSizePool. |
void |
testCompare_VariableSizePool_And_ResourceLimitingPool_Max100_Gets200_LargePoolables()Compare the VariableSizePool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a VariableSizePool. |
void |
testCompare_VariableSizePool_And_ResourceLimitingPool_Max100_Gets200_MediumPoolables()Compare the VariableSizePool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a VariableSizePool. |
void |
testCompare_VariableSizePool_And_ResourceLimitingPool_Max100_Gets200_SmallPoolables()Compare the VariableSizePool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a VariableSizePool. |
| 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_FixedSizePool_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_FixedSizePool_And_BlockingFixedSizePool_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 medium objects.
java.lang.Exception
public void testCompare_FixedSizePool_And_BlockingFixedSizePool_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_FixedSizePool_And_BlockingFixedSizePool_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 medium objects.
java.lang.Exception
public void testCompare_FixedSizePool_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_FixedSizePool_And_VariableSizePool_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_FixedSizePool_And_VariableSizePool_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_FixedSizePool_And_VariableSizePool_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_VariableSizePool_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_VariableSizePool_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_VariableSizePool_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_VariableSizePool_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_VariableSizePool_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_VariableSizePool_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.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 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,
ClassInstanceObjectFactory factory)
throws java.lang.Exception
java.lang.Exception
protected void generalTest(java.lang.String name,
Pool poolA,
Pool poolB,
int gets,
ClassInstanceObjectFactory 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 | ||||||||||