use of org.opentosca.toscana.core.transformation.TransformationService in project TOSCAna by StuPro-TOSCAna.
the class TransformationControllerTest method mockTransformationService.
private void mockTransformationService() {
transformationService = mock(TransformationService.class);
when(transformationService.createTransformation(any(Csar.class), any(Platform.class))).then(iom -> {
Csar csar = (Csar) iom.getArguments()[0];
Platform platform = (Platform) iom.getArguments()[1];
Transformation t = new TransformationImpl(csar, platform, logMock(), modelMock());
csar.getTransformations().put(platform.id, t);
return t;
});
}
Aggregations