|
||||||||||
| 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.jcs.utils.struct.SortedPrefArrayUnitTest
public class SortedPrefArrayUnitTest
Tests the SortedPrefArray used by the recycle bin.
| Constructor Summary | |
|---|---|
SortedPrefArrayUnitTest(String testName)
Constructor for the TestSimpleLoad object |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Description of the Method |
void |
testEmptyTake()
Verify that we don't get an error when taking from an empty array. |
void |
testEqualToGreatest_LastTwoSameSize()
Try taking an item equal to the greatest. |
void |
testEqualToGreatest()
Try taking an item equal to the greatest. |
void |
testLargePref()
|
void |
testNullInsertion()
Verify that we don't get a null pointer if we insert a null. |
void |
testNullTake()
Verify that we don't get an npe when taking with a null |
void |
testSingleItemTake()
Verify that we don't get an npe when taking from an array of only one |
void |
testSingleItemTakeLarger()
Verify that we don't get an npe when taking from an array of only one |
void |
testSingleItemTakeLargerEmpty()
Verify that we don't get an npe when taking from an array of none |
void |
testTakeEveryLastItem()
Test taking every last item. |
void |
testTakeLargerThanGreatest()
Try taking an item larger than the greatest. |
void |
testTakeLargestItem()
Test taking the largest item. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
| Constructor Detail |
|---|
public SortedPrefArrayUnitTest(String testName)
testName - Description of the Parameter| Method Detail |
|---|
public static void main(String[] args)
args - Description of the Parameter
public void testLargePref()
throws Exception
Exception
public void testEmptyTake()
throws Exception
Exception
public void testNullInsertion()
throws Exception
Exception
public void testNullTake()
throws Exception
Exception
public void testSingleItemTake()
throws Exception
Exception
public void testSingleItemTakeLarger()
throws Exception
Exception
public void testSingleItemTakeLargerEmpty()
throws Exception
Exception
public void testTakeLargestItem()
throws Exception
Exception
public void testTakeEveryLastItem()
throws Exception
Exceptionpublic void testTakeLargerThanGreatest()
public void testEqualToGreatest_LastTwoSameSize()
public void testEqualToGreatest()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||