From 3ec5bf03c59007cc654b76406f69e006210e9ef9 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Mon, 2 May 2022 14:33:31 +0200 Subject: [PATCH] improved JUnit test --- src/test/java/WorkspaceInstance.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/test/java/WorkspaceInstance.java b/src/test/java/WorkspaceInstance.java index d1e5ded..f0eb4f8 100644 --- a/src/test/java/WorkspaceInstance.java +++ b/src/test/java/WorkspaceInstance.java @@ -170,15 +170,19 @@ public class WorkspaceInstance { public void getSharedFolderMembers() { System.out.println("Getting getSharedFolderMembers"); try { - - String sharedFolderId = "7e3c6636-927c-4139-9fcc-64986ea70cbf"; //devNext + + String sharedFolderId = "7e3c6636-927c-4139-9fcc-64986ea70cbf"; // devNext sharedFolderId = "c141d53d-4cae-4bfc-a6f7-9b8bbd8c0e2b"; //NextNext SCOPE = "/gcube"; - TOKEN = ""; + TOKEN = ""; storageHubWrapper = new StorageHubWrapper(SCOPE, TOKEN); List listMembers = storageHubWrapper.getWorkspace().getSharedFolderMembers(sharedFolderId); - System.out.println("List: " + listMembers); + System.out.println("Foud " + listMembers.size() + " member/s"); + + for (Member member : listMembers) { + System.out.println(member); + } } catch (Exception e) { e.printStackTrace();