fixing test

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@148236 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-05-02 13:30:00 +00:00
parent e7d9986962
commit 479564f509
1 changed files with 11 additions and 3 deletions

View File

@ -126,6 +126,7 @@ public class MultiContextTest extends ScopedTest {
logger.debug("Good the Facet created in the default context cannot be updated in an alternative context"); logger.debug("Good the Facet created in the default context cannot be updated in an alternative context");
} }
/* Commented because the behavior has been changed
try { try {
facetManagement = new FacetManagement(); facetManagement = new FacetManagement();
facetManagement.setUUID(uuid); facetManagement.setUUID(uuid);
@ -137,6 +138,7 @@ public class MultiContextTest extends ScopedTest {
} catch (FacetAvailableInAnotherContextException e) { } catch (FacetAvailableInAnotherContextException e) {
logger.debug("Good the Facet created in the default context cannot be deleted in an alternative context"); logger.debug("Good the Facet created in the default context cannot be deleted in an alternative context");
} }
*/
/* ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ */
@ -282,14 +284,21 @@ public class MultiContextTest extends ScopedTest {
logger.debug("Resource with {} Not Found as Expected", logger.debug("Resource with {} Not Found as Expected",
eServiceUUID); eServiceUUID);
} }
/* Commented because the behavior has been changed
try { try {
resourceManagement = new ResourceManagement(); resourceManagement = new ResourceManagement();
resourceManagement.setUUID(eServiceUUID); resourceManagement.setUUID(eServiceUUID);
resourceManagement.delete(); resourceManagement.delete();
logger.debug("You should not be able to delete EService with UUID {}",
uuid);
throw new Exception(
"You should not be able to delete EService with UUID " + uuid);
} catch (ResourceAvailableInAnotherContextException e) { } catch (ResourceAvailableInAnotherContextException e) {
logger.debug("Resource with {} Not Deleted as Expected", logger.debug("Resource with {} Not Deleted as Expected",
eServiceUUID); eServiceUUID);
} }
*/
resourceManagement = new ResourceManagement(); resourceManagement = new ResourceManagement();
resourceManagement.setUUID(uuid); resourceManagement.setUUID(uuid);
@ -306,7 +315,6 @@ public class MultiContextTest extends ScopedTest {
deleted = resourceManagement.delete(); deleted = resourceManagement.delete();
Assert.assertTrue(deleted); Assert.assertTrue(deleted);
} }
// @Test // @Test