Class AbstractGraphTest
java.lang.Object
test.de.iip_ecosphere.platform.configuration.easyProducer.AbstractGraphTest
- Direct Known Subclasses:
DataflowGraphFormatTest
Basic graph testing facility.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA test edge overriding IVML accesses.static classA test graph overriding IVML accesses.static classA test node overriding IVML accesses. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final de.iip_ecosphere.platform.configuration.easyProducer.ivml.GraphFactoryprotected static final de.iip_ecosphere.platform.configuration.easyProducer.ivml.DecisionVariableProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidassertEdges(Iterable<? extends de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraphEdge> expected, Iterable<? extends de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraphEdge> actual) Asserts edges.static voidassertGraph(de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraph expected, de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraph actual) Asserts equality of graphs.static de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraphCreates a graph for testing.static de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraphCreates an empty graph for testing.
-
Field Details
-
FACTORY
protected static final de.iip_ecosphere.platform.configuration.easyProducer.ivml.GraphFactory FACTORY -
VAR_PROVIDER
protected static final de.iip_ecosphere.platform.configuration.easyProducer.ivml.DecisionVariableProvider VAR_PROVIDER
-
-
Constructor Details
-
AbstractGraphTest
public AbstractGraphTest()
-
-
Method Details
-
createAbcGraph
public static de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraph createAbcGraph()Creates a graph for testing.- Returns:
- the graph
-
createEmptyGraph
public static de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraph createEmptyGraph()Creates an empty graph for testing.- Returns:
- the graph
-
assertGraph
public static void assertGraph(de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraph expected, de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraph actual) Asserts equality of graphs.- Parameters:
expected- the expected graphactual- the actual graph
-
assertEdges
private static void assertEdges(Iterable<? extends de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraphEdge> expected, Iterable<? extends de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraphEdge> actual) Asserts edges.- Parameters:
expected- the expected edgesactual- the actual edges
-