Skip to content
Snippets Groups Projects
Commit eb2a3709 authored by buczekp's avatar buczekp
Browse files

[LMS-1921] fixed openbis tests

SVN: 19189
parent 883ab136
No related branches found
No related tags found
No related merge requests found
...@@ -62,15 +62,15 @@ public final class SampleTypePE extends EntityTypePE ...@@ -62,15 +62,15 @@ public final class SampleTypePE extends EntityTypePE
// NOTE: Should be objects in order to allow Hibernate to find SampleType by example. // NOTE: Should be objects in order to allow Hibernate to find SampleType by example.
// //
private Boolean listable = true; private Boolean listable;
private Integer generatedFromHierarchyDepth = 0; private Integer generatedFromHierarchyDepth;
private Integer containerHierarchyDepth = 0; private Integer containerHierarchyDepth;
private Boolean subcodeUnique = false; private Boolean subcodeUnique;
private Boolean autoGeneratedCode = false; private Boolean autoGeneratedCode;
private String generatedCodePrefix; private String generatedCodePrefix;
......
...@@ -403,7 +403,13 @@ public class ScreeningApiImplTest extends AbstractServerTestCase ...@@ -403,7 +403,13 @@ public class ScreeningApiImplTest extends AbstractServerTestCase
{ {
SamplePE sample = new SamplePE(); SamplePE sample = new SamplePE();
sample.setId(1L); sample.setId(1L);
sample.setSampleType(new SampleTypePE()); final SampleTypePE sampleType = new SampleTypePE();
sampleType.setContainerHierarchyDepth(1);
sampleType.setGeneratedFromHierarchyDepth(1);
sampleType.setListable(false);
sampleType.setAutoGeneratedCode(false);
sampleType.setSubcodeUnique(false);
sample.setSampleType(sampleType);
return sample; return sample;
} }
......
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