Fixed test

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@141568 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-01-13 16:56:28 +00:00
parent f5b33d67c1
commit e727e1e6e5
1 changed files with 6 additions and 10 deletions

View File

@ -403,14 +403,11 @@ public class ERManagementTest extends ScopedTest {
logger.error(error);
throw new Exception(error);
}
facetManagement = new FacetManagement();
facetManagement.setUUID(facetUUID);
resourceManagement = new ResourceManagement();
resourceManagement.setUUID(resourceUUID);
resourceManagement.delete();
boolean deleted = resourceManagement.delete();
Assert.assertTrue(deleted);
}
@ -502,10 +499,9 @@ public class ERManagementTest extends ScopedTest {
for(Resource r : resourceList){
resourceManagement = new ResourceManagement();
resourceManagement.setUUID(r.getHeader().getUUID());
resourceManagement.delete();
boolean deleted = resourceManagement.delete();
Assert.assertTrue(deleted);
}
}
@Test
@ -646,8 +642,8 @@ public class ERManagementTest extends ScopedTest {
ResourceManagement resourceManagement = new ResourceManagement();
resourceManagement.setUUID(hostingNode.getHeader().getUUID());
resourceManagement.delete();
boolean deleted = resourceManagement.delete();
Assert.assertTrue(deleted);
}