diff options
author | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2014-01-07 08:00:58 +0100 |
---|---|---|
committer | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2014-01-07 08:00:58 +0100 |
commit | 8b2d5f3d35c5550a78100616d7ef34294a44f70a (patch) | |
tree | c33baf164ad68787633e2569f566d302c676104f | |
parent | 235ee04e1a8b1fb274be05c7755c511377908404 (diff) | |
download | gwtquery-8b2d5f3d35c5550a78100616d7ef34294a44f70a.tar.gz gwtquery-8b2d5f3d35c5550a78100616d7ef34294a44f70a.zip |
Use gwtSetup instead of constructor in gwt test
-rw-r--r-- | gwtquery-core/src/test/java/com/google/gwt/query/client/ajax/AjaxTestGwt.java | 4 |
1 files 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"; } } |