Package h07
Class TemplateTests.ShortestPathsAlgorithmTemplateTest
- java.lang.Object
-
- h07.util.TestClass
-
- h07.TemplateTests.ShortestPathsAlgorithmTemplateTest
-
- Enclosing class:
- TemplateTests
@Nested public class TemplateTests.ShortestPathsAlgorithmTemplateTest extends TestClass
Tests for interfaceShortestPathsAlgorithm
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class h07.util.TestClass
TestClass.MissingMemberException
-
-
Field Summary
Fields Modifier and Type Field Description Method
shortestPaths
Method
object forShortestPathsAlgorithm.shortestPaths(DirectedGraph, V, Monoid, Comparator)
-
Fields inherited from class h07.util.TestClass
classDescriptor, className, constructor, fields, methods, RANDOM
-
-
Constructor Summary
Constructors Constructor Description ShortestPathsAlgorithmTemplateTest()
Creates a newTemplateTests.ShortestPathsAlgorithmTemplateTest
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testDefinition()
Tests the definition ofShortestPathsAlgorithm
.-
Methods inherited from class h07.util.TestClass
getClassForName, getFieldByCriteria, getFieldByName, getMethodByCriteria, getMethodByName, getMethodSignature, invokeExpectingException, newInstance, newInstanceExpectingException, testInstance
-
-
-
-
Field Detail
-
shortestPaths
public final Method shortestPaths
Method
object forShortestPathsAlgorithm.shortestPaths(DirectedGraph, V, Monoid, Comparator)
-
-
Constructor Detail
-
ShortestPathsAlgorithmTemplateTest
public ShortestPathsAlgorithmTemplateTest()
Creates a newTemplateTests.ShortestPathsAlgorithmTemplateTest
object. Requires thatShortestPathsAlgorithm
exists.
-
-
Method Detail
-
testDefinition
@Test public void testDefinition()
Tests the definition ofShortestPathsAlgorithm
.- Asserts that the interface...
- is public
- is generic and has two type parameters, V and A
- Asserts that
shortestPaths(DirectedGraph, V, Monoid, Comparator)
is public and abstract and has return typeMap<V, Path<V, A>>
- Specified by:
testDefinition
in classTestClass
- Asserts that the interface...
-
-