aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core/src/test/java
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2014-01-27 12:30:33 +0100
committerManolo Carrasco <manolo@apache.org>2014-01-27 12:30:33 +0100
commit8a0328a2d3edc5319aa4206d2061356a48f35e72 (patch)
treeee2c8aa1e5f69cd08a1232c094591d9404fa29c3 /gwtquery-core/src/test/java
parentb92bd078148e700bd188308724713f5f6c7d44eb (diff)
downloadgwtquery-8a0328a2d3edc5319aa4206d2061356a48f35e72.tar.gz
gwtquery-8a0328a2d3edc5319aa4206d2061356a48f35e72.zip
Refactoring using more meaningful names for properties interface and getter
Diffstat (limited to 'gwtquery-core/src/test/java')
-rw-r--r--gwtquery-core/src/test/java/com/google/gwt/query/client/ajax/AjaxTests.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/ajax/AjaxTests.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/ajax/AjaxTests.java
index ee3005c9..f5d0cbf5 100644
--- a/gwtquery-core/src/test/java/com/google/gwt/query/client/ajax/AjaxTests.java
+++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/ajax/AjaxTests.java
@@ -21,7 +21,7 @@ import com.google.gwt.http.client.Response;
import com.google.gwt.junit.DoNotRunWith;
import com.google.gwt.junit.Platform;
import com.google.gwt.junit.client.GWTTestCase;
-import com.google.gwt.query.client.Binder;
+import com.google.gwt.query.client.IsProperties;
import com.google.gwt.query.client.Function;
import com.google.gwt.query.client.GQ;
import com.google.gwt.query.client.Promise;
@@ -34,7 +34,7 @@ import com.google.gwt.query.client.plugins.ajax.Ajax.Settings;
public abstract class AjaxTests extends GWTTestCase {
protected String echoUrl, echoUrlCORS;
- protected Binder json, jsonGET;
+ protected IsProperties json, jsonGET;
protected String servletPath = "test.json";
private Function failFunction = new Function() {
@@ -58,7 +58,7 @@ public abstract class AjaxTests extends GWTTestCase {
delayTestFinish(5000);
return Ajax.ajax(s)
.done(new Function(){public void f() {
- Binder p = arguments(0);
+ IsProperties p = arguments(0);
assertEquals("abc", p.get("a"));
finishTest();
}})
@@ -183,10 +183,10 @@ public abstract class AjaxTests extends GWTTestCase {
Ajax.getJSONP("https://www.googleapis.com/blogger/v2/blogs/user_id/posts/post_id?callback=?&key=NO-KEY")
.done(new Function(){
public void f() {
- Binder p = arguments(0);
+ IsProperties p = arguments(0);
// It should return error since we do not use a valid key
// {"error":{"errors":[{"domain":"usageLimits","reason":"keyInvalid","message":"Bad Request"}],"code":400,"message":"Bad Request"}}
- assertEquals(400, p.<Binder>get("error").<Number>get("code").intValue());
+ assertEquals(400, p.<IsProperties>get("error").<Number>get("code").intValue());
finishTest();
}
})