Giancarlo Panichi 11 years ago
parent dd9b897864
commit 8def4ef14a

@ -7,7 +7,7 @@
<stringAttribute key="com.google.gwt.eclipse.core.STYLE" value="OBFUSCATED"/>
<stringAttribute key="com.google.gwt.eclipse.core.WEB_MODE" value="false"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/tabular-data-information/src/test/java/org/gcube/portlets/user/td/information/client/GwtTestInformation.java"/>
<listEntry value="/tabular-data-information-widget/src/test/java/org/gcube/portlets/user/td/informationwidget/client/GwtTestInformation.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
@ -17,6 +17,6 @@
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="com.google.gdt.eclipse.maven.mavenClasspathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.gcube.portlets.user.td.information.client.GwtTestInformation"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="tabular-data-information"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.gcube.portlets.user.td.informationwidget.client.GwtTestInformation"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="tabular-data-information-widget"/>
</launchConfiguration>

@ -7,7 +7,7 @@
<stringAttribute key="com.google.gwt.eclipse.core.STYLE" value="OBFUSCATED"/>
<stringAttribute key="com.google.gwt.eclipse.core.WEB_MODE" value="true"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/tabular-data-information/src/test/java/org/gcube/portlets/user/td/information/client/GwtTestInformation.java"/>
<listEntry value="/tabular-data-information-widget/src/test/java/org/gcube/portlets/user/td/informationwidget/client/GwtTestInformation.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>

@ -201,7 +201,7 @@
<configuration>
<runTarget>Information.html</runTarget>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<module>org.gcube.portlets.user.td.information.Information</module>
<module>org.gcube.portlets.user.td.informationwidget.Information</module>
</configuration>
</plugin>

@ -1,4 +1,4 @@
package org.gcube.portlets.user.td.information.client;
package org.gcube.portlets.user.td.informationwidget.client;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.core.client.EntryPoint;

@ -1,9 +1,11 @@
package org.gcube.portlets.user.td.information.client;
package org.gcube.portlets.user.td.informationwidget.client;
import java.util.HashMap;
import org.gcube.portlets.user.td.gxtservice.client.rpc.TDGXTServiceAsync;
import org.gcube.portlets.user.td.gxtservice.shared.TabResource;
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
import org.gcube.portlets.user.td.gwtservice.shared.TabResource;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.web.bindery.event.shared.EventBus;
@ -33,7 +35,7 @@ public class TabularResourceProperties extends ContentPanel {
setId(name);
this.eventBus = eventBus;
TDGXTServiceAsync.INSTANCE
TDGWTServiceAsync.INSTANCE
.getTabResource(new AsyncCallback<TabResource>() {
@Override

@ -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
Loading…
Cancel
Save