From 81944929dd95eaf6dbd831e5111f8fb35ecea28a Mon Sep 17 00:00:00 2001
From: felmer <felmer>
Date: Tue, 13 Nov 2012 14:18:51 +0000
Subject: [PATCH] SP-367, BIS-242: CommonTestUtils modified in order to be
 independent form
 ch.systemsx.cisd.openbis.generic.server.business.ManagerTestTool

SVN: 27595
---
 .../cisd/openbis/generic/shared/CommonTestUtils.java         | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/CommonTestUtils.java b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/CommonTestUtils.java
index 1178c05c2fc..9514eb31013 100644
--- a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/CommonTestUtils.java
+++ b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/CommonTestUtils.java
@@ -16,8 +16,6 @@
 
 package ch.systemsx.cisd.openbis.generic.shared;
 
-import static ch.systemsx.cisd.openbis.generic.server.business.ManagerTestTool.EXAMPLE_SESSION;
-
 import java.io.File;
 import java.io.IOException;
 import java.util.Arrays;
@@ -373,7 +371,7 @@ public class CommonTestUtils
     {
         final ExperimentPE exp = new ExperimentPE();
         final ExperimentTypePE expType = new ExperimentTypePE();
-        expType.setCode("expType");
+        expType.setCode("TEST-EXP-TYPE");
         exp.setId(42L);
         exp.setExperimentType(expType);
         exp.setCode(ei.getExperimentCode());
@@ -405,7 +403,6 @@ public class CommonTestUtils
         material.setCode(code);
         material.setMaterialType(materialType);
         material.setDatabaseInstance(CommonTestUtils.createHomeDatabaseInstance());
-        material.setRegistrator(EXAMPLE_SESSION.tryGetPerson());
         return material;
     }
 
-- 
GitLab