From: Manuel Carrasco MoƱino Date: Tue, 7 Jan 2014 07:00:58 +0000 (+0100) Subject: Use gwtSetup instead of constructor in gwt test X-Git-Tag: gwtquery-project-1.4.3~44^2~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8b2d5f3d35c5550a78100616d7ef34294a44f70a;p=gwtquery.git Use gwtSetup instead of constructor in gwt test --- diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/ajax/AjaxTestGwt.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/ajax/AjaxTestGwt.java index b69c0ac5..69b0021a 100644 --- a/gwtquery-core/src/test/java/com/google/gwt/query/client/ajax/AjaxTestGwt.java +++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/ajax/AjaxTestGwt.java @@ -28,8 +28,8 @@ public class AjaxTestGwt extends AjaxTests { return "com.google.gwt.query.QueryTest"; } - public AjaxTestGwt() { - echoUrl = (GWT.isClient() ? GWT.getHostPageBaseURL() : "http://localhost:3333/") + servletPath; + protected void gwtSetUp() throws Exception { + echoUrl = GWT.getHostPageBaseURL() + servletPath; echoUrlCORS = echoUrl.replaceFirst("http://[\\d\\.]+:", "http://localhost:") + "?cors=true"; } }