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

SP-367, BIS-242: CommonTestUtils modified in order to be independent form...

SP-367, BIS-242: CommonTestUtils modified in order to be independent form ch.systemsx.cisd.openbis.generic.server.business.ManagerTestTool

SVN: 27595
parent c142ce64
No related branches found
No related tags found
No related merge requests found
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
package ch.systemsx.cisd.openbis.generic.shared; 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.File;
import java.io.IOException; import java.io.IOException;
import java.util.Arrays; import java.util.Arrays;
...@@ -373,7 +371,7 @@ public class CommonTestUtils ...@@ -373,7 +371,7 @@ public class CommonTestUtils
{ {
final ExperimentPE exp = new ExperimentPE(); final ExperimentPE exp = new ExperimentPE();
final ExperimentTypePE expType = new ExperimentTypePE(); final ExperimentTypePE expType = new ExperimentTypePE();
expType.setCode("expType"); expType.setCode("TEST-EXP-TYPE");
exp.setId(42L); exp.setId(42L);
exp.setExperimentType(expType); exp.setExperimentType(expType);
exp.setCode(ei.getExperimentCode()); exp.setCode(ei.getExperimentCode());
...@@ -405,7 +403,6 @@ public class CommonTestUtils ...@@ -405,7 +403,6 @@ public class CommonTestUtils
material.setCode(code); material.setCode(code);
material.setMaterialType(materialType); material.setMaterialType(materialType);
material.setDatabaseInstance(CommonTestUtils.createHomeDatabaseInstance()); material.setDatabaseInstance(CommonTestUtils.createHomeDatabaseInstance());
material.setRegistrator(EXAMPLE_SESSION.tryGetPerson());
return material; return material;
} }
......
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