ws-thredds-sync-widget/src/test/java/org/gcube/portlets/widgets/wsthreddssync/TestWsThreddsQuery.java

43 lines
971 B
Java
Raw Normal View History

package org.gcube.portlets.widgets.wsthreddssync;
public class TestWsThreddsQuery {
final static String folderId = "61ea6d91-4b09-43ec-91c4-b2fdb9b8c538";
static String scope = "/gcube/devsec";
static String username = "francesco.mangiacrapa";
// NextNeext Francesco's Token
static String token = "TOKEN";
2021-05-11 13:01:01 +02:00
/*
public static void main(String[] args) {
isItemSynched();
2021-05-11 13:01:01 +02:00
}
2021-05-11 13:01:01 +02:00
2021-05-11 13:01:01 +02:00
public static void isItemSynched() {
try {
ScopeProvider.instance.set(scope);
2021-05-11 13:01:01 +02:00
Map<String, Object> metadata = workspace.getMetadata(folderId);
if (metadata == null || metadata.isEmpty()) {
throw new ItemNotSynched("No properties to read");
}
String wsSyncStatus = (String) metadata.get(WS_SYNCH_SYNCH_STATUS);
System.out.println("Current: " + WS_SYNCH_SYNCH_STATUS + " has value: " + wsSyncStatus);
2021-05-11 13:01:01 +02:00
// System.out.println("isSynched: " + isSynched);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
2021-05-11 13:01:01 +02:00
}
2021-05-11 13:01:01 +02:00
*/
}