Skip to content
Snippets Groups Projects
Commit f16a91f8 authored by felmer's avatar felmer
Browse files

LMS-2040 test fixed

SVN: 19979
parent 1899069a
No related branches found
No related tags found
No related merge requests found
......@@ -238,13 +238,23 @@ public class ScreeningApiImplTest extends AbstractServerTestCase
Sample p1 = plateSample(pi1, "384_WELLS_16X24");
will(returnValue(Arrays.asList(p1)));
one(screeningBOFactory).createDatasetLister(SESSION);
allowing(screeningBOFactory).createDatasetLister(SESSION);
will(returnValue(datasetLister));
one(datasetLister).listBySampleIds(with(Arrays.asList((long) 1)));
final ExternalData rawImage = imageRawDataSet(p1, "2", 2);
ExternalData imageSegmentationDataSet = imageSegmentationDataSet(p1, "3", 3, rawImage);
ExternalData imageAnalysisDataSet = imageAnalysisDataSet(p1, "4", 4);
will(returnValue(Arrays.asList(imageDataSet(p1, "1", 1), rawImage,
imageSegmentationDataSet(p1, "3", 3, rawImage),
imageAnalysisDataSet(p1, "4", 4))));
imageSegmentationDataSet,
imageAnalysisDataSet)));
one(datasetLister).listByParentTechIds(Arrays.asList(1l, 2l));
will(returnValue(Arrays.asList(imageSegmentationDataSet, imageAnalysisDataSet)));
one(datasetLister).listParentIds(Arrays.asList(3l));
HashMap<Long, Set<Long>> result = new HashMap<Long, Set<Long>>();
result.put(3l, Collections.singleton(2l));
will(returnValue(result));
}
});
......
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