From 3f823651d6262bb3ce2ae7bfbf6f57f41cf4496f Mon Sep 17 00:00:00 2001
From: tpylak <tpylak>
Date: Fri, 25 Jun 2010 11:44:30 +0000
Subject: [PATCH] fix feature vector unit tests

SVN: 16738
---
 .../dss/etl/genedata/FeatureStorageProcessorTest.java     | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/screening/sourceTest/java/ch/systemsx/cisd/openbis/dss/etl/genedata/FeatureStorageProcessorTest.java b/screening/sourceTest/java/ch/systemsx/cisd/openbis/dss/etl/genedata/FeatureStorageProcessorTest.java
index 5b859884376..0d40b9a99a7 100644
--- a/screening/sourceTest/java/ch/systemsx/cisd/openbis/dss/etl/genedata/FeatureStorageProcessorTest.java
+++ b/screening/sourceTest/java/ch/systemsx/cisd/openbis/dss/etl/genedata/FeatureStorageProcessorTest.java
@@ -93,14 +93,18 @@ public class FeatureStorageProcessorTest extends AbstractFileSystemTestCase
                     one(dao).tryGetDatasetByPermId(DATA_SET_PERM_ID);
                     will(returnValue(dataSetDTO));
 
-                    ImgFeatureDefDTO featureDTO = new ImgFeatureDefDTO("alpha", "alpha", 1);
+                    long datasetId = 1;
+                    one(dao).addDataset(with(any(ImgDatasetDTO.class)));
+                    will(returnValue(datasetId));
+
+                    ImgFeatureDefDTO featureDTO = new ImgFeatureDefDTO("alpha", "alpha", datasetId);
                     one(dao).addFeatureDef(with(equal(featureDTO)));
                     will(returnValue((long) 1));
 
                     one(dao).addFeatureValues(with(any(ImgFeatureValuesDTO.class)));
                     will(returnValue((long) 1));
 
-                    featureDTO = new ImgFeatureDefDTO("beta", "beta", 1);
+                    featureDTO = new ImgFeatureDefDTO("beta", "beta", datasetId);
                     one(dao).addFeatureDef(with(equal(featureDTO)));
                     will(returnValue((long) 2));
 
-- 
GitLab