Fixing test

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@141524 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-01-12 11:44:50 +00:00
parent 810feaac5b
commit 2bb92c44e6
2 changed files with 7 additions and 17 deletions

View File

@ -148,17 +148,6 @@ public class EntityManagementTest extends ScopedTest {
boolean deleted = resourceRegistryPublisher.deleteResource(createdHostingNode); boolean deleted = resourceRegistryPublisher.deleteResource(createdHostingNode);
Assert.assertTrue(deleted); Assert.assertTrue(deleted);
deleted = resourceRegistryPublisher.deleteFacet(createdCPUFacet);
Assert.assertTrue(deleted);
deleted = resourceRegistryPublisher.deleteFacet(createdNetworkingFacet);
Assert.assertTrue(deleted);
deleted = resourceRegistryPublisher.deleteFacet(createdSoftwareFacet);
Assert.assertTrue(deleted);
deleted = resourceRegistryPublisher.deleteResource(createdEService); deleted = resourceRegistryPublisher.deleteResource(createdEService);
Assert.assertTrue(deleted); Assert.assertTrue(deleted);
@ -203,16 +192,15 @@ public class EntityManagementTest extends ScopedTest {
Assert.assertTrue(deleted); Assert.assertTrue(deleted);
deleted = resourceRegistryPublisher.deleteFacet(createdCpuFacet);
Assert.assertTrue(deleted);
deleted = resourceRegistryPublisher.deleteIsRelatedTo(createdHosts); deleted = resourceRegistryPublisher.deleteIsRelatedTo(createdHosts);
Assert.assertTrue(deleted); Assert.assertTrue(deleted);
deleted = resourceRegistryPublisher.deleteResource(createdHostingNode); deleted = resourceRegistryPublisher.deleteResource(createdHostingNode);
Assert.assertTrue(deleted); Assert.assertTrue(deleted);
deleted = resourceRegistryPublisher.deleteResource(createdEService);
Assert.assertTrue(deleted);
} }

View File

@ -159,13 +159,15 @@ public class MultiContextTest extends ScopedTest {
} }
/*
boolean deleted = resourceRegistryPublisher.deleteResource(createdHN); boolean deleted = resourceRegistryPublisher.deleteResource(createdHN);
Assert.assertTrue(deleted); Assert.assertTrue(deleted);
logger.debug("Restoring original scope");
ScopedTest.setContext(ScopedTest.DEFAULT_TEST_SCOPE);
deleted = resourceRegistryPublisher.deleteResource(createEService); deleted = resourceRegistryPublisher.deleteResource(createEService);
Assert.assertTrue(deleted); Assert.assertTrue(deleted);
*/
} }