geoportal-data-entry-app/src/test/java/org/gcube/portlets/user/geoportaldataentry/client/TestClass.java

32 lines
877 B
Java

package org.gcube.portlets.user.geoportaldataentry.client;
import java.time.LocalDateTime;
import org.gcube.portlets.user.geoportaldataentry.server.ConvertToServiceModel;
import org.gcube.portlets.user.geoportaldataentry.server.GeoportalDataEntryServiceImpl;
public class TestClass {
public static void main(String[] args) throws Exception {
LocalDateTime ldt = ConvertToServiceModel.toLocalDateTime("2020-10-01 10:20");
System.out.println(ldt.toString());
String latitudine = "-899.2986";
//System.out.println(latitudine.matches("^[-]?(180(\\.0+)?|((1[0-7]\\d)|([1-9]?\\d))(\\.\\d+)?)$"));
String longitude = "0";
System.out.println(longitude.matches("\\s*[-+]?(180(\\.0+)?|((1[0-7]\\d)|([1-9]?\\d))(\\.\\d+)?)$"));
GeoportalDataEntryServiceImpl g = new GeoportalDataEntryServiceImpl();
g.getLinksFor("", "concessione");
}
}