onModuleLoad()
.
+ */
+public class MyVREs implements EntryPoint {
+
+ /**
+ * This is the entry point method.
+ */
+ public void onModuleLoad() {
+ RootPanel.get("myVREsDIV").add(new VresPanel());
+
+ }
+}
diff --git a/src/main/java/org/gcube/portlet/user/my_vres/client/MyVREsService.java b/src/main/java/org/gcube/portlet/user/my_vres/client/MyVREsService.java
new file mode 100644
index 0000000..2eb6ae6
--- /dev/null
+++ b/src/main/java/org/gcube/portlet/user/my_vres/client/MyVREsService.java
@@ -0,0 +1,20 @@
+package org.gcube.portlet.user.my_vres.client;
+
+import java.util.ArrayList;
+
+import org.gcube.portlet.user.my_vres.shared.VO;
+
+
+
+import com.google.gwt.user.client.rpc.RemoteService;
+import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
+
+/**
+ * The client side stub for the RPC service.
+ */
+@RemoteServiceRelativePath("greet")
+public interface MyVREsService extends RemoteService {
+ ArrayList"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 GwtTestMyVREs extends GWTTestCase {
+
+ /**
+ * Must refer to a valid module that sources this class.
+ */
+ public String getModuleName() {
+ return "org.gcube.portlet.user.my_vres.MyVREsJUnit";
+ }
+
+ /**
+ * Tests the FieldVerifier.
+ */
+ public void testFieldVerifier() {
+// assertFalse(FieldVerifier.isValidName(null));
+// assertFalse(FieldVerifier.isValidName(""));
+// assertFalse(FieldVerifier.isValidName("a"));
+// assertFalse(FieldVerifier.isValidName("ab"));
+// assertFalse(FieldVerifier.isValidName("abc"));
+// assertTrue(FieldVerifier.isValidName("abcd"));
+ }
+
+ /**
+ * This test will send a request to the server using the greetServer method in
+ * MyVREsService and verify the response.
+ */
+ public void testGreetingService() {
+ // Create the service that we will test.
+ MyVREsServiceAsync greetingService = GWT.create(MyVREsService.class);
+ ServiceDefTarget target = (ServiceDefTarget) greetingService;
+ target.setServiceEntryPoint(GWT.getModuleBaseURL() + "MyVREs/greet");
+
+ // 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(10000);
+
+ // Send a request to the server.
+// greetingService.greetServer("GWT User", new AsyncCallback