javaquery/demo-twitter/src/test/java/org/apidesign/bck2brwsr/demo/twitter/TwitterProtocolTest.java
branchmodel
changeset 954 6448c284fe21
parent 948 35f4f8af296c
child 1024 9af5b2f49cb0
     1.1 --- a/javaquery/demo-twitter/src/test/java/org/apidesign/bck2brwsr/demo/twitter/TwitterProtocolTest.java	Mon Apr 08 09:24:59 2013 +0200
     1.2 +++ b/javaquery/demo-twitter/src/test/java/org/apidesign/bck2brwsr/demo/twitter/TwitterProtocolTest.java	Mon Apr 08 16:51:30 2013 +0200
     1.3 @@ -29,9 +29,10 @@
     1.4  public class TwitterProtocolTest {
     1.5      private TwitterModel page;
     1.6      @Http(@Http.Resource(
     1.7 -        path = "/test.tweet",
     1.8 +        path = "/search.json",
     1.9          mimeType = "application/json",
    1.10 -        content = "{\"completed_in\":0.04,\"max_id\":320055706885689344,\"max_id_str\""
    1.11 +        parameters = {"callback"},
    1.12 +        content = "$0({\"completed_in\":0.04,\"max_id\":320055706885689344,\"max_id_str\""
    1.13          + ":\"320055706885689344\",\"page\":1,\"query\":\"from%3AJaroslavTulach\",\"refresh_url\":"
    1.14          + "\"?since_id=320055706885689344&q=from%3AJaroslavTulach\","
    1.15          + "\"results\":[{\"created_at\":\"Fri, 05 Apr 2013 06:10:01 +0000\","
    1.16 @@ -68,13 +69,13 @@
    1.17          + "\"profile_image_url_https\":\"https:\\/\\/si0.twimg.com\\/profile_images\\/1656828312\\/jst_normal.gif\","
    1.18          + "\"source\":\"<a href="http:\\/\\/twitter.com\\/">web<\\/a>\",\"text\":"
    1.19          + "\"Math proofs without words. Ingenious: http:\\/\\/t.co\\/sz7yVbfpGw\"}],\"results_per_page\":100,"
    1.20 -        + "\"since_id\":0,\"since_id_str\":\"0\"}"
    1.21 +        + "\"since_id\":0,\"since_id_str\":\"0\"})"
    1.22      ))
    1.23      @BrwsrTest public void readFromTwttr() throws InterruptedException {
    1.24          if (page == null) {
    1.25              page = new TwitterModel();
    1.26              page.applyBindings();
    1.27 -            page.queryTweets("/test.tweet");
    1.28 +            page.queryTweets("", "q=xyz");
    1.29          }
    1.30  
    1.31          if (page.getCurrentTweets().isEmpty()) {