|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
test.airspace.PlaneTest
public class PlaneTest
Test class for the class Plane.
Field Summary | |
---|---|
(package private) java.util.ArrayList<calculation.Vertex>[] |
arcPoints
Arcpoints. |
(package private) calculation.BuildTree |
buildTree
BuildTree. |
private calculation.Vertex[][] |
graph
Graph for testing. |
private static int |
MAP_HEIGHT
Height of the test graph. |
private static int |
MAP_WIDTH
Width of the test graph. |
private calculation.Vertex |
nullVertex
Nullvertex. |
(package private) general.Parameters |
parameters
Parameters. |
(package private) airspace.Plane |
plane
Plane. |
(package private) calculation.TreeNode |
root
Root. |
(package private) calculation.TreeNode |
treeNode
TreeNode. |
(package private) calculation.Vertex |
vertex
Vertex. |
Constructor Summary | |
---|---|
PlaneTest()
|
Method Summary | |
---|---|
void |
setUp()
A method that is called before every test method. |
void |
testAddToPath()
Tests method addToPath(). |
void |
testClearPath()
Tests method clearPath(). |
void |
testCompareTo()
Tests compareTo(). |
void |
testDistanceOfPoints()
Tests method distanceOfPoints(). |
void |
testDistanceToDoubleDouble()
Tests method distanceTo(double targlat, double targlon). |
void |
testDistanceToPlane()
Tests method distanceToPlane(Plane other). |
void |
testFly()
Tests method fly(). |
void |
testGetLat()
Tests method getLat(). |
void |
testGetLon()
Tests method getLon(). |
void |
testGetSafetyZone()
Tests method getSafetyZone(). |
void |
testIsOnArrivalTree()
Tests method isOnArrivalTree(). |
void |
testPlane()
Tests the constructor. |
void |
testSetColorGetColor()
Tests methods setColor() and getColor(). |
void |
testSetCurrentTreeNodeGetCurrent()
Tests methods setCurrentTreeNode() and getCurrentNode(). |
void |
testSetDirGetDir()
Tests methods setDir() and getDir(). |
void |
testSetDistToAirport()
Tests method setDistToAirport(). |
void |
testSetLat()
Tests method setLat(). |
void |
testSetLon()
Tests method setLon(). |
void |
testSetPathGetPath()
Tests methods getPath() and getPath(). |
void |
testSetSpeedGetSpeed()
Tests methods setSpeed() and getSpeed(). |
void |
testToString()
Tests method toString(). |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.util.ArrayList<calculation.Vertex>[] arcPoints
calculation.BuildTree buildTree
private calculation.Vertex[][] graph
private static final int MAP_HEIGHT
private static final int MAP_WIDTH
private calculation.Vertex nullVertex
general.Parameters parameters
airspace.Plane plane
calculation.TreeNode root
calculation.TreeNode treeNode
calculation.Vertex vertex
Constructor Detail |
---|
public PlaneTest()
Method Detail |
---|
public void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
- if something bad happens.public void testAddToPath()
public void testClearPath()
public void testCompareTo()
public void testDistanceOfPoints()
public void testDistanceToDoubleDouble()
public void testDistanceToPlane()
public void testFly()
public void testGetLat()
public void testGetLon()
public void testGetSafetyZone()
public void testIsOnArrivalTree()
public void testPlane()
public void testSetColorGetColor()
public void testSetCurrentTreeNodeGetCurrent()
public void testSetDirGetDir()
public void testSetDistToAirport()
public void testSetLat()
public void testSetLon()
public void testSetPathGetPath()
public void testSetSpeedGetSpeed()
public void testToString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |