2022-03-23 15:51:04 +01:00
|
|
|
package org.gcube.portlets.user.workspace.junit;
|
|
|
|
|
|
|
|
import org.gcube.common.scope.api.ScopeProvider;
|
|
|
|
import org.gcube.portlets.user.workspace.server.reader.ApplicationProfileReader;
|
|
|
|
|
|
|
|
public class WEA_AP_Reader {
|
|
|
|
|
2022-05-02 15:11:48 +02:00
|
|
|
public static String SCOPE = "/d4science.research-infrastructures.eu";
|
|
|
|
public static String resourceName = "Workspace-Explorer-App";
|
|
|
|
public static String appID = "org.gcube.portlets.user.workspaceexplorerapp.server.WorkspaceExplorerAppServiceImpl";
|
2022-03-23 15:51:04 +01:00
|
|
|
|
2022-05-02 15:11:48 +02:00
|
|
|
// @Test
|
2022-03-23 15:51:04 +01:00
|
|
|
public void readAP() {
|
|
|
|
|
|
|
|
try {
|
|
|
|
// ScopeProvider.instance.set("/d4science.research-infrastructures.eu/D4Research/Limnodata");
|
2022-05-02 15:11:48 +02:00
|
|
|
ScopeProvider.instance.set(SCOPE);
|
2022-03-23 15:51:04 +01:00
|
|
|
ApplicationProfileReader ap = new ApplicationProfileReader(resourceName, appID);
|
2022-05-02 15:11:48 +02:00
|
|
|
System.out.println("ApplicationProfile found: " + ap.readProfileFromInfrastrucure());
|
2022-03-23 15:51:04 +01:00
|
|
|
} catch (Exception e) {
|
|
|
|
// TODO Auto-generated catch block
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|