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

@@ -71,6 +71,8 @@ public class MiscControllerTest extends AbstractTransformerControllerTest
private final String targetEncoding = "UTF-8";
private final String targetMimetype = MIMETYPE_TEXT_PLAIN;
private static final String ENGINE_CONFIG_NAME = "misc_engine_config.json";
@Before
public void before() throws Exception
{
@@ -86,6 +88,12 @@ public class MiscControllerTest extends AbstractTransformerControllerTest
expectedSourceFileBytes);
}
@Override
public String getEngineConfigName()
{
return ENGINE_CONFIG_NAME;
}
@Override
protected void mockTransformCommand(String sourceExtension, String targetExtension,
String sourceMimetype, boolean readTargetFileBytes)