Skip to content
Snippets Groups Projects
Commit d5f92b3a authored by pkupczyk's avatar pkupczyk
Browse files

SSDM-1663 : Ingestion service - moving log files fails

SVN: 33751
parent e1ab70c6
No related branches found
No related tags found
No related merge requests found
......@@ -91,8 +91,6 @@ public abstract class IngestionService<T extends DataSetInformation> extends Agg
private final IMailClient mailClient;
private final DssUniqueFilenameGenerator filenameGenerator;
/**
* Constructor for the AbstractDbModifyingAggegation service. This constructor is used by the ReportingPluginTaskFactory.
*
......@@ -133,7 +131,6 @@ public abstract class IngestionService<T extends DataSetInformation> extends Agg
this.dssProperties = dssProperties;
this.openBisService = openBisService;
this.mailClient = mailClient;
filenameGenerator = new DssUniqueFilenameGenerator("mock", "file", "serialized");
}
@Override
......@@ -275,6 +272,7 @@ public abstract class IngestionService<T extends DataSetInformation> extends Agg
protected File createMockIncomingFile(Map<String, Object> parameters) throws IOException
{
HashMap<String, Object> parameterHashMap = new HashMap<String, Object>(parameters);
DssUniqueFilenameGenerator filenameGenerator = new DssUniqueFilenameGenerator(Thread.currentThread().getName(), "file", "serialized");
File mockIncomingDataSetFile =
new File(getMockIncomingDir(), filenameGenerator.generateFilename());
mockIncomingDataSetFile.createNewFile();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment