ATS-466/ATS-538/ATS-539: Incorporate Misc T-Engine in ATS (#98)

- fix multiple Misc Transformer bugs related to file mimeTypes
- remove usage of 'source/targetMimetype' as transform options/parameters
- add 'source/targetMimetype' arguments to the 'processTransform' method
- remove unnecessary code (e.g. useless overridden methods)
- add quick* test resource files
- add integration test for 'Local Transformations' on the Misc engine
- set up Integration Tests POM configuration for all T-Engine modules
This commit is contained in:
CezarLeahu
2019-08-26 13:59:38 +03:00
committed by GitHub
parent 9c2661d13a
commit d9747f015d
33 changed files with 864 additions and 194 deletions

View File

@@ -214,7 +214,8 @@ public abstract class AbstractTransformerController implements TransformControll
// Run the transformation
try
{
processTransform(sourceFile, targetFile, request.getTransformRequestOptions(), timeout);
processTransform(sourceFile, targetFile, request.getSourceMediaType(),
request.getTargetMediaType(), request.getTransformRequestOptions(), timeout);
}
catch (TransformException e)
{

View File

@@ -65,8 +65,9 @@ public interface TransformController
ResponseEntity<TransformReply> transform(TransformRequest transformRequest, Long timeout);
void processTransform(File sourceFile, File targetFile, Map<String, String> transformOptions,
Long timeout);
void processTransform(final File sourceFile, final File targetFile,
final String sourceMimetype, final String targetMimetype,
final Map<String, String> transformOptions, final Long timeout);
String getTransformerName();