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 Arca2bprivate static Arca2cprivate static Arca2eprivate static Arcb2cprivate static Arcc2aprivate static Arcc2d_1private static Arcc2d_2private static Arcc2d_3private static Arcd2aprivate static Arcd2eprivate static Arce2dprivate static PathemptyPathprivate static Graphgraphprivate static PathinvalidPathprivate static PathlongLoopPathprivate static PathlongPathprivate static PathloopPathprivate static Node[]nodesprivate static PathshortPathprivate static PathsingleNodePath
-
Constructor Summary
Constructors Constructor Description PathTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidinitAll()voidtestConstructor()voidtestCreateFastestPathFromNodes()voidtestCreateFastestPathFromNodesException()voidtestCreateShortestPathFromNodes()voidtestCreateShortestPathFromNodesException()voidtestGetLength()voidtestGetMinimumTravelTime()voidtestGetTravelTime()voidtestImmutability()voidtestIsEmpty()voidtestIsValid()voidtestSize()
-
-
-
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()
-
-