Please enter your name: | +|
+ | + |
+ |
"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 GwtTestUnionWizardTD extends GWTTestCase {
+
+ /**
+ * Must refer to a valid module that sources this class.
+ */
+ public String getModuleName() {
+ return "org.gcube.portlets.user.unionwizardwidget.UnionWizardTDJUnit";
+ }
+
+ /**
+ * This test will send a request to the server
+ */
+ public void testResource() {
+ // Create the service that we will test.
+ TDGWTServiceAsync tdGWTService = GWT.create(TDGWTService.class);
+ ServiceDefTarget target = (ServiceDefTarget) tdGWTService;
+ 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 7 seconds before timing out.
+ delayTestFinish(7000);
+
+ // Send a request to the server.
+ tdGWTService.getTabularResources(new AsyncCallback