public abstract class AbstractUnsafeListTest<T extends Comparable<T>> extends AbstractListTest
| Modifier and Type | Field and Description |
|---|---|
protected UnsafeArrayList<T> |
list |
rand, size| Constructor and Description |
|---|
AbstractUnsafeListTest() |
| Modifier and Type | Method and Description |
|---|---|
long |
bytes()
Calculates the size of the data structure under test.
|
abstract T |
newInstance(T obj)
Populates the fields of obj with random values.
|
void |
setup()
Setups the test.
|
void |
shuffle()
Shuffles the test list.
|
void |
sort()
Sorts the test list.
|
abstract Class<T> |
testClass()
Returns the class under test being used within the generic list.
|
iterate, iterateInPlace, setRandomSeed, setSizeprotected UnsafeArrayList<T extends Comparable<T>> list
public abstract Class<T> testClass()
public abstract T newInstance(T obj)
obj - The object to populatepublic void setup()
throws IllegalAccessException,
InstantiationException
AbstractListTestsetup in class AbstractListTestIllegalAccessExceptionInstantiationExceptionpublic long bytes()
AbstractListTestbytes in class AbstractListTestpublic void shuffle()
AbstractListTestshuffle in class AbstractListTestpublic void sort()
AbstractListTestsort in class AbstractListTestCopyright © 2015. All rights reserved.