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

SSDM-4187: fixing test caused by change of behavior of SampleOwnerIdentifier

SVN: 37847
parent ac034552
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ public class SampleOwnerIdentifierTest
@Test
public void testIsAndGetSpaceLevel()
{
assertIsAndGetSpaceLevel(ownerProjectP1, false, null);
assertIsAndGetSpaceLevel(ownerProjectP1, false, spaceA);
assertIsAndGetSpaceLevel(ownerSpaceA, true, spaceA);
assertIsAndGetSpaceLevel(noOwner, false, null);
}
......@@ -87,7 +87,13 @@ public class SampleOwnerIdentifierTest
private void assertIsAndGetSpaceLevel(SampleOwnerIdentifier identifier, boolean expected, SpaceIdentifier space)
{
assertEquals(identifier.isSpaceLevel(), expected);
assertSame(identifier.getSpaceLevel(), space);
if (space == null)
{
assertEquals(identifier.getSpaceLevel(), null);
} else
{
assertSame(identifier.getSpaceLevel().getSpaceCode(), space.getSpaceCode());
}
}
@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