java.lang.Object
test.de.iip_ecosphere.platform.configuration.easyProducer.AbstractGraphTest
Direct Known Subclasses:
DataflowGraphFormatTest

public class AbstractGraphTest extends Object
Basic graph testing facility.
Author:
Holger Eichelberger, SSE
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    A test edge overriding IVML accesses.
    static class 
    A test graph overriding IVML accesses.
    static class 
    A test node overriding IVML accesses.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final de.iip_ecosphere.platform.configuration.easyProducer.ivml.GraphFactory
     
    protected static final de.iip_ecosphere.platform.configuration.easyProducer.ivml.DecisionVariableProvider
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    static de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraph
    Creates a graph for testing.
    static de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraph
    Creates an empty graph for testing.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 graph
      actual - 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 edges
      actual - the actual edges