Fixing test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@141532 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
828d893388
commit
21834543fd
|
@ -53,6 +53,7 @@ import org.gcube.informationsystem.model.relation.consistsof.HasVolatileMemory;
|
|||
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
|
||||
import org.gcube.informationsystem.resourceregistry.publisher.proxy.ResourceRegistryPublisher;
|
||||
import org.gcube.informationsystem.resourceregistry.publisher.proxy.ResourceRegistryPublisherFactory;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -85,6 +86,12 @@ public class SmartgearResourcesTest extends ScopedTest {
|
|||
hostingNode = resourceRegistryPublisher.createResource(HostingNode.class, hostingNode);
|
||||
logger.debug("Created : {}", hostingNode);
|
||||
|
||||
Assert.assertTrue(hostingNode!=null);
|
||||
Assert.assertTrue(hostingNode.getHeader()!=null);
|
||||
Assert.assertTrue(hostingNode.getHeader().getUUID()!=null);
|
||||
|
||||
boolean deleted = resourceRegistryPublisher.deleteResource(hostingNode);
|
||||
Assert.assertTrue(deleted);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -94,6 +101,14 @@ public class SmartgearResourcesTest extends ScopedTest {
|
|||
|
||||
eService = resourceRegistryPublisher.createResource(EService.class, eService);
|
||||
logger.debug("Created : {}", eService);
|
||||
|
||||
Assert.assertTrue(eService!=null);
|
||||
Assert.assertTrue(eService.getHeader()!=null);
|
||||
Assert.assertTrue(eService.getHeader().getUUID()!=null);
|
||||
|
||||
boolean deleted = resourceRegistryPublisher.deleteResource(eService);
|
||||
Assert.assertTrue(deleted);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -206,8 +221,11 @@ public class SmartgearResourcesTest extends ScopedTest {
|
|||
|
||||
consistsOfList.removeAll(consistsOfToRemove);
|
||||
|
||||
HostingNode hostingNodeToUpdated = resourceRegistryPublisher.updateResource(HostingNode.class, hostingNodeToUpdate);
|
||||
logger.debug("Upodate Hosting Node {}", hostingNodeToUpdated);
|
||||
HostingNode updatedHostingNode = resourceRegistryPublisher.updateResource(HostingNode.class, hostingNodeToUpdate);
|
||||
logger.debug("Upodate Hosting Node {}", updatedHostingNode);
|
||||
|
||||
boolean deleted = resourceRegistryPublisher.deleteResource(updatedHostingNode);
|
||||
Assert.assertTrue(deleted);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue