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

32 lines
877 B
Java
Raw Normal View History

2020-10-20 15:25:26 +02:00
package org.gcube.portlets.user.geoportaldataentry.client;
2020-10-21 12:38:57 +02:00
import java.time.LocalDateTime;
2020-10-20 15:25:26 +02:00
import org.gcube.portlets.user.geoportaldataentry.server.ConvertToServiceModel;
import org.gcube.portlets.user.geoportaldataentry.server.GeoportalDataEntryServiceImpl;
2020-10-20 15:25:26 +02:00
public class TestClass {
public static void main(String[] args) throws Exception {
2020-10-20 15:25:26 +02:00
2020-10-21 12:38:57 +02:00
LocalDateTime ldt = ConvertToServiceModel.toLocalDateTime("2020-10-01 10:20");
System.out.println(ldt.toString());
2020-10-20 15:25:26 +02:00
String latitudine = "-899.2986";
2020-10-21 12:38:57 +02:00
//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+)?)$"));
2020-10-20 15:25:26 +02:00
GeoportalDataEntryServiceImpl g = new GeoportalDataEntryServiceImpl();
g.getLinksFor("", "concessione");
2020-10-20 15:25:26 +02:00
}
}