-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestPlanesPassSamePoint.java
More file actions
76 lines (69 loc) · 2.27 KB
/
testPlanesPassSamePoint.java
File metadata and controls
76 lines (69 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* Test when planes pass through the same point, but avoid collision.
*
* @author William King
* @author Jason Dixie
* @author Christi Kazakov
* @author Shelley King
* @author Zachery Kuhns
* @author Lauren Malone
* @author Adam Miller
* @author Casey Monson
* @version 07 Nov 15 - 1453
*/
public class testPlanesPassSamePoint
{
/**
* Default constructor for test class testPlanesPassSamePoint
*/
public testPlanesPassSamePoint()
{
}
/**
* Test two planes in various directions of vector
*/
@Test
public void testSameAltitude(){
ADSBInterface ADSB1 = new ADSBInterface({});
Aircraft plane1A = new Aircraft("1A",{10.0,10.0,20.0},{0.0,0.0,-5.0});
Aircraft plane1B = new Aircraft("1B",{0.0,0.0,10.0},{10.0,10.0,10.0});
ADSB1.addAircraft(plane1A);
ADSB1.addAircraft(plane1B);
// The design said in, so if it is called with this, it should put out the
// correct warning level
<Name of Our Program>(ADSB1);
}
/**
* Test two planes, one climbing through the path of the other
*/
@Test
public void testSameAltitude(){
ADSBInterface ADSB2 = new ADSBInterface({});
Aircraft plane2A = new Aircraft("2A",{0.0,0.0,1000.0},{20.0,0.0,0.0});
Aircraft plane2B = new Aircraft("2B",{0.0,0.0,500.0},{15.0,0,250.0});
ADSB2.addAircraft(plane2A);
ADSB2.addAircraft(plane2B);
// The design said in, so if it is called with this, it should put out the
// correct warning level
<Name of Our Program>(ADSB2);
}
*/
/**
* Test two planes, on a level plane
*/
@Test
public void testSameAltitude(){
ADSBInterface ADSB3 = new ADSBInterface({});
Aircraft plane3A = new Aircraft("3A",{0.0,0.0,1000.0},{20.0,-5.0,0.0});
Aircraft plane3B = new Aircraft("3B",{0.0,0.0,1000.0},{0.0,-10.0,0.0});
ADSB3.addAircraft(plane3A);
ADSB3.addAircraft(plane3B);
// The design said in, so if it is called with this, it should put out the
// correct warning level
<Name of Our Program>(ADSB3);
}
}