]> source.dussan.org Git - gwtquery.git/commitdiff
Use gwtSetup instead of constructor in gwt test
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Tue, 7 Jan 2014 07:00:58 +0000 (08:00 +0100)
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Tue, 7 Jan 2014 07:00:58 +0000 (08:00 +0100)
gwtquery-core/src/test/java/com/google/gwt/query/client/ajax/AjaxTestGwt.java

index b69c0ac594131d37d02b40b9c62e2063f7aa787b..69b0021aaf9cc370050f10a4dfca52ae887bdc60 100644 (file)
@@ -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";
   }
 }