test.airspace
Class AirControlTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.airspace.AirControlTest
All Implemented Interfaces:
junit.framework.Test

public class AirControlTest
extends junit.framework.TestCase

Test class for the class AirControl.

Version:
1
Author:
Potkuri-group

Field Summary
(package private)  airspace.AirControl airControl
          AirControl.
(package private)  java.util.ArrayList[] arcPoints
          Arc points [].
(package private)  java.util.ArrayList<calculation.Vertex> arcPointsMp
          Arc points Vertex.
(package private)  calculation.BuildTree buildTree
          BuilTree.
(package private)  general.DataCollection dc
          Datacollection.
(package private)  calculation.Graph g
          Graph.
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)  java.util.ArrayList<calculation.Vertex> path1
          Path 1.
(package private)  java.util.ArrayList<calculation.Vertex> path2
          Path 2.
(package private)  java.util.ArrayList<calculation.Vertex> path3
          Path 3.
(package private)  java.util.ArrayList<calculation.Vertex> path4
          Path 4.
(package private)  airspace.Plane plane
          Plane.
(package private)  java.util.ArrayList<airspace.Plane> planes
          Planes.
(package private)  calculation.Tree tree
          Tree.
(package private)  calculation.Tree tree2
          Tree2.
(package private)  calculation.TreeNode treeNode
          TreeNode.
(package private)  calculation.Vertex vertex
          Vertex.
 
Constructor Summary
AirControlTest()
           
 
Method Summary
 void setUp()
          Setup.
 void testAddPlane()
          Test addPlane method.
 void testAirControl()
          Test airControls method.
 void testClosestMergePoint()
          Test closestMergePoint method.
 void testClosestTNToPlane()
          Test closestTNToPlane method.
 void testControlPlanes()
          Test controlPlanes() method.
 void testFlyPlane()
          Test flyPlane method.
 void testGetAirportStatus()
          Test getAirportStatus() method.
 void testGetArrivedPlanes()
          Test getArrivedPlanes() method.
 void testGetNumberOfPlanes()
          Test getNumberOfPlanes() method.
 void testGetPlanes()
          Test getPlanes() method.
 void testNewPath()
          Test newPath() method.
 void testSafetyZoneCheck()
          Test safetyZoneCheck() method.
 void testSetBuildTreeGetTree()
          Test setBuildTree() method.
 void testSort()
          Test sort() method.
 void testUpdate()
          Test update() method.
 
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

airControl

airspace.AirControl airControl
AirControl.


arcPoints

java.util.ArrayList[] arcPoints
Arc points [].


arcPointsMp

java.util.ArrayList<calculation.Vertex> arcPointsMp
Arc points Vertex.


buildTree

calculation.BuildTree buildTree
BuilTree.


dc

general.DataCollection dc
Datacollection.


g

calculation.Graph g
Graph.


graph

private calculation.Vertex[][] graph
Graph for testing.


MAP_HEIGHT

private static final int MAP_HEIGHT
Height of the test graph.

See Also:
Constant Field Values

MAP_WIDTH

private static final int MAP_WIDTH
Width of the test graph.

See Also:
Constant Field Values

nullVertex

private calculation.Vertex nullVertex
Nullvertex.


parameters

general.Parameters parameters
Parameters.


path1

java.util.ArrayList<calculation.Vertex> path1
Path 1.


path2

java.util.ArrayList<calculation.Vertex> path2
Path 2.


path3

java.util.ArrayList<calculation.Vertex> path3
Path 3.


path4

java.util.ArrayList<calculation.Vertex> path4
Path 4.


plane

airspace.Plane plane
Plane.


planes

java.util.ArrayList<airspace.Plane> planes
Planes.


tree

calculation.Tree tree
Tree.


tree2

calculation.Tree tree2
Tree2.


treeNode

calculation.TreeNode treeNode
TreeNode.


vertex

calculation.Vertex vertex
Vertex.

Constructor Detail

AirControlTest

public AirControlTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Setup.

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception - exception

testAddPlane

public void testAddPlane()
Test addPlane method.


testAirControl

public void testAirControl()
Test airControls method.


testClosestMergePoint

public void testClosestMergePoint()
Test closestMergePoint method.


testClosestTNToPlane

public void testClosestTNToPlane()
Test closestTNToPlane method.


testControlPlanes

public void testControlPlanes()
Test controlPlanes() method.


testFlyPlane

public void testFlyPlane()
Test flyPlane method.


testGetAirportStatus

public void testGetAirportStatus()
Test getAirportStatus() method.


testGetArrivedPlanes

public void testGetArrivedPlanes()
Test getArrivedPlanes() method.


testGetNumberOfPlanes

public void testGetNumberOfPlanes()
Test getNumberOfPlanes() method.


testGetPlanes

public void testGetPlanes()
Test getPlanes() method.


testNewPath

public void testNewPath()
Test newPath() method.


testSafetyZoneCheck

public void testSafetyZoneCheck()
Test safetyZoneCheck() method.


testSetBuildTreeGetTree

public void testSetBuildTreeGetTree()
Test setBuildTree() method.


testSort

public void testSort()
Test sort() method.


testUpdate

public void testUpdate()
Test update() method.