From 92bd721603f1440eb3a3d025b04c53046caeadae Mon Sep 17 00:00:00 2001
From: jakubs <jakubs>
Date: Tue, 15 Jan 2013 10:02:08 +0000
Subject: [PATCH] SP-207 BIS-124 fix the test

SVN: 28100
---
 .../openbis/systemtest/UpdateSampleContainmentTest.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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 47bb54a2e7a..c45ee31b559 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
-- 
GitLab