From 04bb5ecbb1b7ac20b5b1273b0ca4dc8d2e1fb565 Mon Sep 17 00:00:00 2001
From: tpylak <tpylak>
Date: Tue, 19 Jul 2011 08:55:00 +0000
Subject: [PATCH] LMS-2355 fix unit test

SVN: 22195
---
 .../plugin/screening/server/logic/WellContentLoader.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/server/logic/WellContentLoader.java b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/server/logic/WellContentLoader.java
index d3f5e58b7f9..3e063e8916f 100644
--- a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/server/logic/WellContentLoader.java
+++ b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/server/logic/WellContentLoader.java
@@ -953,6 +953,8 @@ public class WellContentLoader extends AbstractContentLoader
 
     private static WellContent convert(WellContentQueryResult well)
     {
+        WellLocation wellLocation =
+                ScreeningUtils.tryCreateLocationFromMatrixCoordinate(well.well_code);
         EntityReference wellReference =
                 new EntityReference(well.well_id, well.well_code, well.well_type_code,
                         EntityKind.SAMPLE, well.well_perm_id);
@@ -960,7 +962,6 @@ public class WellContentLoader extends AbstractContentLoader
                 new EntityReference(well.plate_id, well.plate_code, well.plate_type_code,
                         EntityKind.SAMPLE, well.getPlatePermId());
 
-        WellLocation wellLocation = well.getWellReference().getWellLocation();
         return new WellContent(wellLocation, wellReference, plate, convertExperiment(well));
     }
 
-- 
GitLab