Skip to content
Snippets Groups Projects
Commit 92bd7216 authored by jakubs's avatar jakubs
Browse files

SP-207 BIS-124 fix the test

SVN: 28100
parent f3194db7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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