Initial tests

* Add initial tests for config aggregation
* Update AbstractTransformerControllerTest to use the new engine config names
This commit is contained in:
Erik Knizat
2020-04-06 16:02:01 +01:00
parent c5a552066a
commit 952cfef306
9 changed files with 131 additions and 35 deletions

View File

@@ -81,6 +81,9 @@ import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
@WebMvcTest(LibreOfficeControllerTest.class)
public class LibreOfficeControllerTest extends AbstractTransformerControllerTest
{
private static final String ENGINE_CONFIG_NAME = "libreoffice_engine_config.json";
@Mock
private ExecutionResult mockExecutionResult;
@@ -137,6 +140,12 @@ public class LibreOfficeControllerTest extends AbstractTransformerControllerTest
}).when(javaExecutor).convert(any(), any());
}
@Override
public String getEngineConfigName()
{
return ENGINE_CONFIG_NAME;
}
@Override
protected void mockTransformCommand(String sourceExtension, String targetExtension,
String sourceMimetype, boolean readTargetFileBytes)