improved JUnit test

This commit is contained in:
Francesco Mangiacrapa 2022-05-02 14:33:31 +02:00
parent ed482f9675
commit 3ec5bf03c5
1 changed files with 8 additions and 4 deletions

View File

@ -170,15 +170,19 @@ public class WorkspaceInstance {
public void getSharedFolderMembers() { public void getSharedFolderMembers() {
System.out.println("Getting getSharedFolderMembers"); System.out.println("Getting getSharedFolderMembers");
try { try {
String sharedFolderId = "7e3c6636-927c-4139-9fcc-64986ea70cbf"; //devNext String sharedFolderId = "7e3c6636-927c-4139-9fcc-64986ea70cbf"; // devNext
sharedFolderId = "c141d53d-4cae-4bfc-a6f7-9b8bbd8c0e2b"; //NextNext sharedFolderId = "c141d53d-4cae-4bfc-a6f7-9b8bbd8c0e2b"; //NextNext
SCOPE = "/gcube"; SCOPE = "/gcube";
TOKEN = ""; TOKEN = "";
storageHubWrapper = new StorageHubWrapper(SCOPE, TOKEN); storageHubWrapper = new StorageHubWrapper(SCOPE, TOKEN);
List<Member> listMembers = storageHubWrapper.getWorkspace().getSharedFolderMembers(sharedFolderId); List<Member> 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) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();