use of org.opentosca.toscana.core.csar.CsarImpl in project TOSCAna by StuPro-TOSCAna.
the class BaseTransformTest method initContext.
/**
* initializes the transformation context
*/
protected TransformationContext initContext() throws Exception {
Csar csar = new CsarImpl(tmpdir, "csarId", logMock());
Transformation t = new TransformationImpl(csar, plugin.getPlatform(), logMock(), model);
Transformation transformation = spy(t);
when(transformation.getInputs()).thenReturn(inputs);
return new TransformationContext(transformation, workingDir);
}
Aggregations