diff --git a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/systemtest/api/v1/GeneralInformationServiceTest.java b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/systemtest/api/v1/GeneralInformationServiceTest.java index b04066ce342ae8cd66c7a48766b182f0cf57fd12..1130561f4bc65e296d21fc099df41d3b08e40ac5 100644 --- a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/systemtest/api/v1/GeneralInformationServiceTest.java +++ b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/systemtest/api/v1/GeneralInformationServiceTest.java @@ -1256,11 +1256,17 @@ public class GeneralInformationServiceTest extends SystemTestCase assertEquals("[]", dataSets.get(1).getContainedDataSets().toString()); loginAsObserver(); - dataSets = - generalInformationService.getDataSetMetaData(sessionToken, - Arrays.asList("20081105092159222-2")); - assertEquals("[]", dataSets.toString()); + try + { + dataSets = + generalInformationService.getDataSetMetaData(sessionToken, + Arrays.asList("20081105092159222-2")); + fail(); + } catch (AuthorizationFailureException e) + { + // expected + } } @Test