Package net.unto.twitter.methods

Examples of net.unto.twitter.methods.Request.toUrl()


        .profileTextColor("000").profileLinkColor("0000CC")
        .profileSidebarFillColor("CCCCCC").profileSidebarBorderColor("333333")
        .build();
    assertEquals("http://twitter.com:80/account/update_profile_colors.json",
        request.toString());
    assertHasParameter(request.toUrl(), "profile_background_color", "FFF");
    assertHasParameter(request.toUrl(), "profile_text_color", "000");
    assertHasParameter(request.toUrl(), "profile_link_color", "0000CC");
    assertHasParameter(request.toUrl(), "profile_sidebar_fill_color", "CCCCCC");
    assertHasParameter(request.toUrl(), "profile_sidebar_border_color",
        "333333");
View Full Code Here


        .profileSidebarFillColor("CCCCCC").profileSidebarBorderColor("333333")
        .build();
    assertEquals("http://twitter.com:80/account/update_profile_colors.json",
        request.toString());
    assertHasParameter(request.toUrl(), "profile_background_color", "FFF");
    assertHasParameter(request.toUrl(), "profile_text_color", "000");
    assertHasParameter(request.toUrl(), "profile_link_color", "0000CC");
    assertHasParameter(request.toUrl(), "profile_sidebar_fill_color", "CCCCCC");
    assertHasParameter(request.toUrl(), "profile_sidebar_border_color",
        "333333");
  }
View Full Code Here

        .build();
    assertEquals("http://twitter.com:80/account/update_profile_colors.json",
        request.toString());
    assertHasParameter(request.toUrl(), "profile_background_color", "FFF");
    assertHasParameter(request.toUrl(), "profile_text_color", "000");
    assertHasParameter(request.toUrl(), "profile_link_color", "0000CC");
    assertHasParameter(request.toUrl(), "profile_sidebar_fill_color", "CCCCCC");
    assertHasParameter(request.toUrl(), "profile_sidebar_border_color",
        "333333");
  }
View Full Code Here

    assertEquals("http://twitter.com:80/account/update_profile_colors.json",
        request.toString());
    assertHasParameter(request.toUrl(), "profile_background_color", "FFF");
    assertHasParameter(request.toUrl(), "profile_text_color", "000");
    assertHasParameter(request.toUrl(), "profile_link_color", "0000CC");
    assertHasParameter(request.toUrl(), "profile_sidebar_fill_color", "CCCCCC");
    assertHasParameter(request.toUrl(), "profile_sidebar_border_color",
        "333333");
  }

  @Test
View Full Code Here

        request.toString());
    assertHasParameter(request.toUrl(), "profile_background_color", "FFF");
    assertHasParameter(request.toUrl(), "profile_text_color", "000");
    assertHasParameter(request.toUrl(), "profile_link_color", "0000CC");
    assertHasParameter(request.toUrl(), "profile_sidebar_fill_color", "CCCCCC");
    assertHasParameter(request.toUrl(), "profile_sidebar_border_color",
        "333333");
  }

  @Test
  public void testUpdateProfileImageRequestUrl() throws IOException {
View Full Code Here

    File file = new File(TEST_DATA_DIR, "profile_image.png");
    Request request = api.updateProfileImage(file).build();
    assertEquals("http://twitter.com:80/account/update_profile_image.json",
        request.toString());
    byte[] bytes = FileUtils.readFileToByteArray(file);
    assertHasPart(request.toUrl(), "image", "profile_image.png", bytes, "image/png", FilePart.DEFAULT_CHARSET);
  }

  @Test
  public void testUpdateProfileRequestUrl() {
    Api api = Api.builder().username("test").password("test").build();
View Full Code Here

    Request request = api.updateProfile().name("DeWitt Clinton").email(
        "dewitt@unto.net").url("http://unto.net/")
        .location("San Francisco, CA").description("...").build();
    assertEquals("http://twitter.com:80/account/update_profile.json", request
        .toString());
    assertHasParameter(request.toUrl(), "name", "DeWitt Clinton");
    assertHasParameter(request.toUrl(), "email", "dewitt@unto.net");
    assertHasParameter(request.toUrl(), "url", "http://unto.net/");
    assertHasParameter(request.toUrl(), "location", "San Francisco, CA");
    assertHasParameter(request.toUrl(), "description", "...");
  }
View Full Code Here

        "dewitt@unto.net").url("http://unto.net/")
        .location("San Francisco, CA").description("...").build();
    assertEquals("http://twitter.com:80/account/update_profile.json", request
        .toString());
    assertHasParameter(request.toUrl(), "name", "DeWitt Clinton");
    assertHasParameter(request.toUrl(), "email", "dewitt@unto.net");
    assertHasParameter(request.toUrl(), "url", "http://unto.net/");
    assertHasParameter(request.toUrl(), "location", "San Francisco, CA");
    assertHasParameter(request.toUrl(), "description", "...");
  }
View Full Code Here

        .location("San Francisco, CA").description("...").build();
    assertEquals("http://twitter.com:80/account/update_profile.json", request
        .toString());
    assertHasParameter(request.toUrl(), "name", "DeWitt Clinton");
    assertHasParameter(request.toUrl(), "email", "dewitt@unto.net");
    assertHasParameter(request.toUrl(), "url", "http://unto.net/");
    assertHasParameter(request.toUrl(), "location", "San Francisco, CA");
    assertHasParameter(request.toUrl(), "description", "...");
  }

  @Test
View Full Code Here

    assertEquals("http://twitter.com:80/account/update_profile.json", request
        .toString());
    assertHasParameter(request.toUrl(), "name", "DeWitt Clinton");
    assertHasParameter(request.toUrl(), "email", "dewitt@unto.net");
    assertHasParameter(request.toUrl(), "url", "http://unto.net/");
    assertHasParameter(request.toUrl(), "location", "San Francisco, CA");
    assertHasParameter(request.toUrl(), "description", "...");
  }

  @Test
  public void testUpdateStatusRequestUrl() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.