Class SimuLizarMockUtils

java.lang.Object
org.palladiosimulator.simulizar.test.commons.util.SimuLizarMockUtils

public class SimuLizarMockUtils extends Object
  • Constructor Details

    • SimuLizarMockUtils

      public SimuLizarMockUtils()
  • Method Details

    • setUpMockRuntimeStateForModelObserving

      public static Map<Class<?>,Object> setUpMockRuntimeStateForModelObserving(org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition pcmInstance, boolean initializeRegistry)
      Creates a mocked RuntimeState providing a global pcm model instance and a resource registry. It is suggested not to use this method directly, but use the MockSimulationExtension extension for JUnit 5.
      Parameters:
      resourceEnvironmentProvider - the test model instance.
      initializeRegistry - should the ResourceRegistry be populated with simulated resource entities?