From 3ec9a982e0379c9463bd1002ab75d03a52cbf3d7 Mon Sep 17 00:00:00 2001 From: Lucio Lelii Date: Thu, 27 Sep 2018 15:31:36 +0000 Subject: [PATCH] git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/Common/storagehub-client@171724 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../common/storagehub/client/proxies/DefaultItemManager.java | 2 +- src/test/java/org/gcube/data/access/fs/TestCall.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/common/storagehub/client/proxies/DefaultItemManager.java b/src/main/java/org/gcube/common/storagehub/client/proxies/DefaultItemManager.java index f27e317..135eb06 100644 --- a/src/main/java/org/gcube/common/storagehub/client/proxies/DefaultItemManager.java +++ b/src/main/java/org/gcube/common/storagehub/client/proxies/DefaultItemManager.java @@ -151,7 +151,7 @@ public class DefaultItemManager implements ItemManagerClient { @Override public Integer childrenCount(String id) { - return childrenCount(null); + return childrenCount(id, null); } private String resolveNodeType(Class itemClass){ diff --git a/src/test/java/org/gcube/data/access/fs/TestCall.java b/src/test/java/org/gcube/data/access/fs/TestCall.java index dd80242..d28d41d 100644 --- a/src/test/java/org/gcube/data/access/fs/TestCall.java +++ b/src/test/java/org/gcube/data/access/fs/TestCall.java @@ -51,7 +51,7 @@ public class TestCall { //SecurityTokenProvider.instance.set("0e2c7963-8d3e-4ea6-a56d-ffda530dd0fa-98187548"); //token costantino 9ca79556-54b0-4bbf-ab0f-151ae326f4cf-98187548 - SecurityTokenProvider.instance.set("ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548"); + SecurityTokenProvider.instance.set("d9431600-9fef-41a7-946d-a5b402de30d6-98187548"); ScopeProvider.instance.set("/gcube"); } @@ -199,7 +199,7 @@ public class TestCall { public void getCount() throws Exception{ final ItemManagerClient client = AbstractPlugin.item().build(); long start = System.currentTimeMillis(); - System.out.println("found "+client.childrenCount("07cd8d55-a35b-4445-9680-c98f158c55de")+" children"); + System.out.println("found "+client.childrenCount("bc1c9525-43f7-4565-b5ea-0a0f9d7853a0")+" children"); System.out.println("count took: "+(System.currentTimeMillis()-start) );