|
|||||||||
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.calculation.GraphTest
public class GraphTest
Test class for the class Graph.
Field Summary | |
---|---|
private int[][] |
big
test weather matrices. |
(package private) static int |
BIG_SIZE
big test map size. |
private general.DataCollection |
data
test dataCollection class address. |
private calculation.Vertex[][] |
graph
test graph size. |
private calculation.Graph |
graphClass
graph class reference. |
private int[][] |
m1
test weather matrices. |
private int[][] |
m2
test weather matrices. |
private int[][] |
m3
test weather matrices. |
private int[][] |
m4
test weather matrices. |
private int[][] |
m5
test weather matrices. |
private int[][] |
m6
test weather matrices. |
(package private) static int |
MAP_SIZE
test map size. |
private int[][] |
zero
test weather matrices. |
Constructor Summary | |
---|---|
GraphTest()
|
Method Summary | |
---|---|
void |
setUp()
Sets up matrices to use in test methods. |
void |
tearDown()
Free resources and memory. |
void |
testCalculateArcPoints()
Test to calculate arc points. |
void |
testGetAirport()
Test to see if airport vertex can be returned. |
void |
testGetArcPoints()
Method to test if arc points are created. |
void |
testGraph()
Test for graph creation. |
void |
testResetGraph()
Test for resetGraph class. |
void |
testScale()
Test to check if scale function works. |
void |
testSetSafezone()
test to check if setSafeZone works properly. |
void |
testUpdate()
Test for update method. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
---|
private int[][] big
static final int BIG_SIZE
private general.DataCollection data
private calculation.Vertex[][] graph
private calculation.Graph graphClass
private int[][] m1
private int[][] m2
private int[][] m3
private int[][] m4
private int[][] m5
private int[][] m6
static final int MAP_SIZE
private int[][] zero
Constructor Detail |
---|
public GraphTest()
Method Detail |
---|
public void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
- if set up doesn't succeedpublic void tearDown()
tearDown
in class junit.framework.TestCase
public void testCalculateArcPoints()
public void testGetAirport()
public void testGetArcPoints()
public void testGraph()
public void testResetGraph()
public void testScale()
public void testSetSafezone()
public void testUpdate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |