diff --git a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/systemtest/UpdateSampleContainmentTest.java b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/systemtest/UpdateSampleContainmentTest.java index 47bb54a2e7a267ab8448d9bd21de7258f5e31218..c45ee31b55964ef3e6dfdf640ce57eef167468f0 100644 --- a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/systemtest/UpdateSampleContainmentTest.java +++ b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/systemtest/UpdateSampleContainmentTest.java @@ -74,15 +74,15 @@ public class UpdateSampleContainmentTest extends BaseTest assertThat(componentCandidate, hasContainer(container)); } - @Test - public void componentCanBeSharedSample() throws Exception + @Test(expectedExceptions = + { UserFailureException.class }) + public void componentCantBeSharedSample() throws Exception { Sample container = create(aSample().inSpace(space)); Sample componentCandidate = create(aSample()); perform(anUpdateOf(componentCandidate).toHaveContainer(container)); - assertThat(componentCandidate, hasContainer(container)); } @Test