Package org.insa.graphes.model
Class PathTest
- java.lang.Object
-
- org.insa.graphes.model.PathTest
-
public class PathTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static Arc
a2b
private static Arc
a2c
private static Arc
a2e
private static Arc
b2c
private static Arc
c2a
private static Arc
c2d_1
private static Arc
c2d_2
private static Arc
c2d_3
private static Arc
d2a
private static Arc
d2e
private static Arc
e2d
private static Path
emptyPath
private static Graph
graph
private static Path
invalidPath
private static Path
longLoopPath
private static Path
longPath
private static Path
loopPath
private static Node[]
nodes
private static Path
shortPath
private static Path
singleNodePath
-
Constructor Summary
Constructors Constructor Description PathTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
initAll()
void
testConstructor()
void
testCreateFastestPathFromNodes()
void
testCreateFastestPathFromNodesException()
void
testCreateShortestPathFromNodes()
void
testCreateShortestPathFromNodesException()
void
testGetLength()
void
testGetMinimumTravelTime()
void
testGetTravelTime()
void
testImmutability()
void
testIsEmpty()
void
testIsValid()
void
testSize()
-
-
-
Field Detail
-
graph
private static Graph graph
-
nodes
private static Node[] nodes
-
a2b
private static Arc a2b
-
a2c
private static Arc a2c
-
a2e
private static Arc a2e
-
b2c
private static Arc b2c
-
c2d_1
private static Arc c2d_1
-
c2d_2
private static Arc c2d_2
-
c2d_3
private static Arc c2d_3
-
c2a
private static Arc c2a
-
d2a
private static Arc d2a
-
d2e
private static Arc d2e
-
e2d
private static Arc e2d
-
emptyPath
private static Path emptyPath
-
singleNodePath
private static Path singleNodePath
-
shortPath
private static Path shortPath
-
longPath
private static Path longPath
-
loopPath
private static Path loopPath
-
longLoopPath
private static Path longLoopPath
-
invalidPath
private static Path invalidPath
-
-
Method Detail
-
initAll
public static void initAll() throws java.io.IOException
- Throws:
java.io.IOException
-
testConstructor
public void testConstructor()
-
testImmutability
public void testImmutability()
-
testIsEmpty
public void testIsEmpty()
-
testSize
public void testSize()
-
testIsValid
public void testIsValid()
-
testGetLength
public void testGetLength()
-
testGetTravelTime
public void testGetTravelTime()
-
testGetMinimumTravelTime
public void testGetMinimumTravelTime()
-
testCreateFastestPathFromNodes
public void testCreateFastestPathFromNodes()
-
testCreateShortestPathFromNodes
public void testCreateShortestPathFromNodes()
-
testCreateFastestPathFromNodesException
public void testCreateFastestPathFromNodesException()
-
testCreateShortestPathFromNodesException
public void testCreateShortestPathFromNodesException()
-
-