|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
com.savarese.algorithms.spatial.RangeSearchTreeTestCase<Coord>
public abstract class RangeSearchTreeTestCase<Coord extends java.lang.Number & java.lang.Comparable<? super Coord>>
KDTreeTest tests the KDTree class.
Field Summary | |
---|---|
protected com.savarese.algorithms.spatial.RangeSearchTree<Coord,com.savarese.algorithms.spatial.GenericPoint<Coord>,com.savarese.algorithms.spatial.GenericPoint<Coord>> |
_tree_
|
Constructor Summary | |
---|---|
RangeSearchTreeTestCase()
|
Method Summary | ||
---|---|---|
protected
|
_fillMap_(M map)
Inserts a set of points into a map. |
|
protected abstract com.savarese.algorithms.spatial.RangeSearchTree<Coord,com.savarese.algorithms.spatial.GenericPoint<Coord>,com.savarese.algorithms.spatial.GenericPoint<Coord>> |
_newTreeFixture_()
Creates a new RangeSearchTree instance for testing. |
|
abstract Coord |
getMaxCoord()
|
|
abstract Coord |
getMinCoord()
|
|
abstract int |
getNumPoints()
|
|
abstract Coord |
newCoord(int val)
|
|
protected void |
setUp()
Instantiates _tree_ to use as a fixture for tests. |
|
protected void |
tearDown()
Clears the tree fixture, removing all its contents so that a subsequent test will not be affected by the previous one. |
|
void |
testClear()
|
|
void |
testContainsKey()
|
|
void |
testContainsValue()
|
|
void |
testEntrySet()
|
|
void |
testEquals()
|
|
void |
testGet()
|
|
void |
testIterator()
|
|
void |
testKeySet()
|
|
void |
testPutAll()
|
|
void |
testRemove()
|
|
void |
testSize()
|
|
void |
testValues()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected com.savarese.algorithms.spatial.RangeSearchTree<Coord extends java.lang.Number & java.lang.Comparable<? super Coord>,com.savarese.algorithms.spatial.GenericPoint<Coord extends java.lang.Number & java.lang.Comparable<? super Coord>>,com.savarese.algorithms.spatial.GenericPoint<Coord extends java.lang.Number & java.lang.Comparable<? super Coord>>> _tree_
Constructor Detail |
---|
public RangeSearchTreeTestCase()
Method Detail |
---|
protected abstract com.savarese.algorithms.spatial.RangeSearchTree<Coord,com.savarese.algorithms.spatial.GenericPoint<Coord>,com.savarese.algorithms.spatial.GenericPoint<Coord>> _newTreeFixture_()
protected void setUp()
_tree_
to use as a fixture for tests.
protected void tearDown()
protected <M extends java.util.Map<com.savarese.algorithms.spatial.GenericPoint<Coord>,com.savarese.algorithms.spatial.GenericPoint<Coord>>> void _fillMap_(M map)
map
- The map to fill with points.public abstract Coord newCoord(int val)
public abstract Coord getMaxCoord()
public abstract Coord getMinCoord()
public abstract int getNumPoints()
public void testSize()
public void testClear()
public void testContainsKey()
public void testContainsValue()
public void testGet()
public void testRemove()
public void testPutAll()
public void testEntrySet()
public void testKeySet()
public void testValues()
public void testIterator()
public void testEquals()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |