From 3d2afee42b4bb604900df0addb09a09598f2543f Mon Sep 17 00:00:00 2001
From: felmer <felmer>
Date: Thu, 8 Oct 2009 07:25:02 +0000
Subject: [PATCH] LMS-1219 tests slightly improved

SVN: 12878
---
 .../source/java/ch/ethz/bsse/cisd/dsu/dss/FlowLineFeeder.java  | 3 ++-
 .../java/ch/ethz/bsse/cisd/dsu/dss/FlowLineFeederTest.java     | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

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 b72a5910cb8..a9be637dad6 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 460fb5d30da..20698af13e3 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)
-- 
GitLab