From 8b2d5f3d35c5550a78100616d7ef34294a44f70a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Carrasco=20Mo=C3=B1ino?= Date: Tue, 7 Jan 2014 08:00:58 +0100 Subject: [PATCH] Use gwtSetup instead of constructor in gwt test --- .../java/com/google/gwt/query/client/ajax/AjaxTestGwt.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; } } -- 2.39.5