Class SimuLizarMockUtils
java.lang.Object
org.palladiosimulator.simulizar.test.commons.util.SimuLizarMockUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetUpMockRuntimeStateForModelObserving
(org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition pcmInstance, boolean initializeRegistry) Creates a mocked RuntimeState providing a global pcm model instance and a resource registry.
-
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 theMockSimulationExtension
extension for JUnit 5.- Parameters:
resourceEnvironmentProvider
- the test model instance.initializeRegistry
- should the ResourceRegistry be populated with simulated resource entities?
-