|
|
|
@ -1,14 +1,11 @@
|
|
|
|
|
package org.gcube.portlets.user.td.information.client;
|
|
|
|
|
package org.gcube.portlets.user.td.informationwidget.client;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.gcube.portlets.user.td.gxtservice.client.rpc.TDGXTService;
|
|
|
|
|
import org.gcube.portlets.user.td.gxtservice.client.rpc.TDGXTServiceAsync;
|
|
|
|
|
import org.gcube.portlets.user.td.gxtservice.shared.TDGXTServiceException;
|
|
|
|
|
import org.gcube.portlets.user.td.gxtservice.shared.TabResource;
|
|
|
|
|
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTService;
|
|
|
|
|
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
|
|
|
|
|
|
|
|
|
import com.google.gwt.core.client.GWT;
|
|
|
|
|
import com.google.gwt.junit.client.GWTTestCase;
|
|
|
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
|
import com.google.gwt.user.client.rpc.ServiceDefTarget;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -36,10 +33,10 @@ public class GwtTestInformation extends GWTTestCase {
|
|
|
|
|
*/
|
|
|
|
|
public void testInformation() {
|
|
|
|
|
// Create the service that we will test.
|
|
|
|
|
TDGXTServiceAsync tdGXTService = GWT.create(TDGXTService.class);
|
|
|
|
|
TDGWTServiceAsync tdGXTService = GWT.create(TDGWTService.class);
|
|
|
|
|
ServiceDefTarget target = (ServiceDefTarget) tdGXTService;
|
|
|
|
|
System.out.println(GWT.getModuleBaseURL() + "/TDGXTService");
|
|
|
|
|
target.setServiceEntryPoint(GWT.getModuleBaseURL() + "/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
|