diff --git a/deep_sequencing_unit/source/java/ch/ethz/bsse/cisd/dsu/dss/FlowLineFeeder.java b/deep_sequencing_unit/source/java/ch/ethz/bsse/cisd/dsu/dss/FlowLineFeeder.java index b72a5910cb88044627a5a3238a38fe98583cd841..a9be637dad6488279f6fe1d4e48c39159793eb5a 100644 --- a/deep_sequencing_unit/source/java/ch/ethz/bsse/cisd/dsu/dss/FlowLineFeeder.java +++ b/deep_sequencing_unit/source/java/ch/ethz/bsse/cisd/dsu/dss/FlowLineFeeder.java @@ -52,6 +52,7 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.SampleIdentifierFa */ class FlowLineFeeder implements IPostRegistrationDatasetHandler { + static final String META_DATA_FILE_NAME = "meta-data.tsv"; static final String FLOW_LINE_DROP_BOX_TEMPLATE = "flow-line-drop-box-template"; static final String FILE_TYPE = ".srf"; @@ -143,7 +144,7 @@ class FlowLineFeeder implements IPostRegistrationDatasetHandler { addLine(builder, property.getPropertyType().getLabel(), property.tryGetAsString()); } - FileUtilities.writeToFile(new File(flowLineDataSet, "meta-data.tsv"), builder.toString()); + FileUtilities.writeToFile(new File(flowLineDataSet, META_DATA_FILE_NAME), builder.toString()); } private void addLine(StringBuilder builder, String key, String value) diff --git a/deep_sequencing_unit/sourceTest/java/ch/ethz/bsse/cisd/dsu/dss/FlowLineFeederTest.java b/deep_sequencing_unit/sourceTest/java/ch/ethz/bsse/cisd/dsu/dss/FlowLineFeederTest.java index 460fb5d30da19dd04052f9716706bed90c6062bd..20698af13e3059cb52d34226c8e4539e034d3a48 100644 --- a/deep_sequencing_unit/sourceTest/java/ch/ethz/bsse/cisd/dsu/dss/FlowLineFeederTest.java +++ b/deep_sequencing_unit/sourceTest/java/ch/ethz/bsse/cisd/dsu/dss/FlowLineFeederTest.java @@ -256,6 +256,7 @@ public class FlowLineFeederTest extends AbstractFileSystemTestCase // last-modified date of the other file. originalFlowLine.setLastModified(4711000); assertEquals(4711000, flowLine.lastModified()); + assertEquals(true, new File(ds, FlowLineFeeder.META_DATA_FILE_NAME).exists()); } private Sample createFlowLineSample(int flowLineNumber)