+
+
+
+
+
+
+
+
+
+
+ Web Application Starter Project
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/test/java/org/gcube/portlets/user/td/widgetcommonevent/client/GwtTestWidgetCommonEvent.java b/src/test/java/org/gcube/portlets/user/td/widgetcommonevent/client/GwtTestWidgetCommonEvent.java
new file mode 100644
index 0000000..19a41ef
--- /dev/null
+++ b/src/test/java/org/gcube/portlets/user/td/widgetcommonevent/client/GwtTestWidgetCommonEvent.java
@@ -0,0 +1,84 @@
+package org.gcube.portlets.user.td.widgetcommonevent.client;
+
+
+
+import org.junit.Test;
+
+import com.google.gwt.junit.client.GWTTestCase;
+
+/**
+ * GWT JUnit integration tests must extend GWTTestCase.
+ * Using "GwtTest*" naming pattern exclude them from running with
+ * surefire during the test phase.
+ *
+ * If you run the tests using the Maven command line, you will have to
+ * navigate with your browser to a specific url given by Maven.
+ * See http://mojo.codehaus.org/gwt-maven-plugin/user-guide/testing.html
+ * for details.
+ */
+public class GwtTestWidgetCommonEvent extends GWTTestCase {
+
+ /**
+ * Must refer to a valid module that sources this class.
+ */
+ @Override
+ public String getModuleName() {
+ return "org.gcube.portlets.user.td.widgetcommonevent.test.WidgetCommonEventJUnit";
+ }
+
+
+ /**
+ * This test will send a request to the server
+ */
+ @Test
+ public void testEvents() {
+ // Create the service that we will test.
+ //TDGWTServiceAsync tdGXTService = GWT.create(TDGWTService.class);
+ //ServiceDefTarget target = (ServiceDefTarget) tdGXTService;
+ //System.out.println(GWT.getModuleBaseURL() + "/TDGWTService");
+ //target.setServiceEntryPoint(GWT.getModuleBaseURL() + "/TDGWTService");
+
+ // Since RPC calls are asynchronous, we will need to wait for a response
+ // after this test method returns. This line tells the test runner to wait
+ // up to 10 seconds before timing out.
+ //delayTestFinish(2000);
+ //finishTest();
+
+ // Send a request to the server.
+ /*try {
+ TDGXTServiceAsync.INSTANCE.getTabResource(
+ new AsyncCallback() {
+
+
+ @Override
+ public void onSuccess(TabResource result) {
+ assertTrue(result!=null);
+ System.out.println(result);
+ // Now that we have received a response, we need to tell the test runner
+ // that the test is complete. You must call finishTest() after an
+ // asynchronous test finishes successfully, or the test will time out.
+ finishTest();
+ }
+
+ @Override
+ public void onFailure(Throwable caught) {
+ // The request resulted in an unexpected error.
+ fail("Request failure: " + caught.getMessage());
+
+
+
+ }
+
+ });
+ } catch (TDGXTServiceException e) {
+ System.out.println("Error in comunications: "+e.getLocalizedMessage());
+ e.printStackTrace();
+ }
+ */
+
+
+ }
+
+
+
+}
diff --git a/src/test/resources/org/gcube/portlets/user/td/widgetcommonevent/test/WidgetCommonEventJUnit.gwt.xml b/src/test/resources/org/gcube/portlets/user/td/widgetcommonevent/test/WidgetCommonEventJUnit.gwt.xml
new file mode 100644
index 0000000..f123262
--- /dev/null
+++ b/src/test/resources/org/gcube/portlets/user/td/widgetcommonevent/test/WidgetCommonEventJUnit.gwt.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/templates/INSTALL b/templates/INSTALL
new file mode 100644
index 0000000..e69de29
diff --git a/templates/LICENSE b/templates/LICENSE
new file mode 100644
index 0000000..cc51139
--- /dev/null
+++ b/templates/LICENSE
@@ -0,0 +1,6 @@
+gCube System - License
+------------------------------------------------------------
+
+The gCube/gCore software is licensed as Free Open Source software conveying to the EUPL (http://ec.europa.eu/idabc/eupl).
+The software and documentation is provided by its authors/distributors "as is" and no expressed or
+implied warranty is given for its use, quality or fitness for a particular case.
\ No newline at end of file
diff --git a/templates/MAINTAINERS b/templates/MAINTAINERS
new file mode 100644
index 0000000..0bc9be3
--- /dev/null
+++ b/templates/MAINTAINERS
@@ -0,0 +1 @@
+Giancarlo Panichi (giancarlo.panichi@isti.cnr.it), CNR Pisa, Istituto di Scienza e Tecnologie dell'Informazione "A. Faedo"
diff --git a/templates/README b/templates/README
new file mode 100644
index 0000000..e81341a
--- /dev/null
+++ b/templates/README
@@ -0,0 +1,40 @@
+The gCube System - ${name}
+------------------------------------------------------------
+
+This work has been supported by the following European projects: iMarine (FP7-INFRASTRUCTURES-2011-2)
+
+Authors
+-------
+
+Giancarlo Panichi (giancarlo.panichi@isti.cnr.it), CNR Pisa,
+Istituto di Scienza e Tecnologie dell'Informazione "A. Faedo"
+
+
+Version and Release Date
+------------------------
+
+v. ${version} (${release.date})
+
+Description
+-----------
+
+${project.description}
+
+Download information
+--------------------
+Source code URL: ${scm.url}
+
+
+Documentation
+-------------
+
+${project.description}
+
+
+Licensing
+---------
+
+This software is licensed under the terms you may find in the file named "LICENSE" in this directory.
+
+
+
diff --git a/templates/changelog.xml b/templates/changelog.xml
new file mode 100644
index 0000000..0b026a2
--- /dev/null
+++ b/templates/changelog.xml
@@ -0,0 +1,6 @@
+
+
+ First Release
+
+
\ No newline at end of file
diff --git a/templates/descriptor.xml b/templates/descriptor.xml
new file mode 100644
index 0000000..b978636
--- /dev/null
+++ b/templates/descriptor.xml
@@ -0,0 +1,39 @@
+
+ servicearchive
+
+ tar.gz
+
+ /
+
+
+ ${distroDirectory}
+ /
+ true
+
+ README
+ LICENSE
+ INSTALL
+ MAINTAINERS
+ changelog.xml
+
+ 755
+
+
+
+
+
+ /${artifactId}
+
+
+
+ /
+
+
+
+ /${artifactId}
+
+
+
\ No newline at end of file
diff --git a/templates/profile.xml b/templates/profile.xml
new file mode 100644
index 0000000..ffa3274
--- /dev/null
+++ b/templates/profile.xml
@@ -0,0 +1,29 @@
+
+
+
+ Service
+
+ ${project.description}
+ PortletsUser
+ ${project.name}
+ 1.0.0
+
+
+ ${project.description}
+ ${project.name}
+ ${version}
+
+ ${project.groupId}
+ ${project.artifactId}
+ ${project.version}
+
+ library
+
+ ${project.build.finalName}.${project.packaging}
+
+
+
+
+
+
+
diff --git a/templates/svnpath.txt b/templates/svnpath.txt
new file mode 100644
index 0000000..dcd0d22
--- /dev/null
+++ b/templates/svnpath.txt
@@ -0,0 +1 @@
+${scm.url}
\ No newline at end of file