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
This commit is contained in:
parent
c8ca8d7186
commit
a178bd299e
|
@ -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<Context> all = resourceRegistryContextClient.all();
|
||||
for(Context c : all) {
|
||||
logger.debug("{}", ISMapper.marshal(c));
|
||||
}
|
||||
}
|
||||
|
||||
// @Test
|
||||
public void createDevContext() throws Exception {
|
||||
Context gcube = new ContextImpl("gcube");
|
||||
|
|
Loading…
Reference in New Issue