From a178bd299e9ba5102d9156dd19d0f5ca47dd6b04 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Thu, 7 Dec 2017 14:24:54 +0000 Subject: [PATCH] added test for all() api git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-context-client@160170 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../context/ResourceRegistryContextClientTest.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientTest.java index eaea9fd..3ea2bee 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientTest.java @@ -2,6 +2,7 @@ package org.gcube.informationsystem.resourceregistry.context; import java.io.IOException; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.UUID; @@ -159,7 +160,7 @@ public class ResourceRegistryContextClientTest extends ScopedTest { // @Test public void readTest() throws Exception { - UUID uuid = UUID.fromString("0958c0e2-2146-4521-adea-4e73dfbf92da"); + UUID uuid = UUID.fromString("828d488-285b-4383-af4b-4d72069ad11b"); Context gcube = read(uuid); logger.debug(ISMapper.marshal(gcube)); } @@ -348,6 +349,14 @@ public class ResourceRegistryContextClientTest extends ScopedTest { logger.debug("The DB should be now clean"); } + @Test + public void testGetAll() throws Exception { + List all = resourceRegistryContextClient.all(); + for(Context c : all) { + logger.debug("{}", ISMapper.marshal(c)); + } + } + // @Test public void createDevContext() throws Exception { Context gcube = new ContextImpl("gcube");