Class SimuLizarMockUtils
- java.lang.Object
-
- org.palladiosimulator.simulizar.test.commons.util.SimuLizarMockUtils
-
public class SimuLizarMockUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description SimuLizarMockUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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 theMockSimulationExtension
extension for JUnit 5.- Parameters:
resourceEnvironmentProvider
- the test model instance.initializeRegistry
- should the ResourceRegistry be populated with simulated resource entities?
-
-