Skip to content

Commit

Permalink
replace all f4j site url
Browse files Browse the repository at this point in the history
  • Loading branch information
roundrop committed Aug 25, 2018
1 parent 8fb2d42 commit baf2ca0
Show file tree
Hide file tree
Showing 21 changed files with 109 additions and 109 deletions.
2 changes: 1 addition & 1 deletion facebook4j-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<packaging>jar</packaging>
<name>facebook4j-core</name>
<description>A Java library for the Facebook Graph API</description>
<url>http://facebook4j.org/</url>
<url>https://facebook4j.github.io/</url>
<licenses>
<license>
<name>Apache License 2.0</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ protected ConfigurationBase() {
setAppSecretProofEnabled(false);
setAppSecretProofCacheSize(10);
setClientVersion(Version.getVersion());
setClientURL("http://facebook4j.org/en/facebook4j-" + Version.getVersion() + ".xml");
setUserAgent("facebook4j http://facebook4j.org/ /" + Version.getVersion());
setClientURL("https://facebook4j.github.io/en/facebook4j-" + Version.getVersion() + ".xml");
setUserAgent("facebook4j https://facebook4j.github.io/ /" + Version.getVersion());

setJSONStoreEnabled(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void simple() throws Exception {
assertThat(user.getHometown().getName(), is("Hiroshima-shi, Hiroshima, Japan"));
assertThat(user.getLocation().getId(), is("163173617067956"));
assertThat(user.getLocation().getName(), is("Yokohama-shi, Kanagawa, Japan"));
assertThat(user.getBio(), is("Facebook4J: http://facebook4j.org"));
assertThat(user.getBio(), is("Facebook4J: https://facebook4j.github.io"));
assertThat(user.getWork().size(), is(2));
assertThat(user.getWork().get(0).getEmployer().getId(), is("20000000000000001"));
assertThat(user.getWork().get(0).getEmployer().getName(), is("company1"));
Expand Down
12 changes: 6 additions & 6 deletions facebook4j-core/src/test/java/facebook4j/EventMethodsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public void me_page() throws Exception {
.description("Test description")
.location("Gran Tokyo South Tower")
.locationId("154470644580235")
.ticketURI(new URI("http://facebook4j.org"))
.ticketURI(new URI("https://facebook4j.github.io"))
.noFeedStory(true);
String eventId = facebook.createEvent(eventUpdate);
assertThat(facebook.getHttpMethod(), is(RequestMethod.POST));
Expand All @@ -209,7 +209,7 @@ public void me_page() throws Exception {
assertThat(facebook.getHttpParameters(), hasPostParameter("description", "Test description"));
assertThat(facebook.getHttpParameters(), hasPostParameter("location", "Gran Tokyo South Tower"));
assertThat(facebook.getHttpParameters(), hasPostParameter("location_id", "154470644580235"));
assertThat(facebook.getHttpParameters(), hasPostParameter("ticket_uri", "http://facebook4j.org"));
assertThat(facebook.getHttpParameters(), hasPostParameter("ticket_uri", "https://facebook4j.github.io"));
assertThat(facebook.getHttpParameters(), hasPostParameter("no_feed_story", "true"));

assertThat(eventId, is("1234567890123456"));
Expand Down Expand Up @@ -333,21 +333,21 @@ public static class postEventLink extends MockFacebookTestBase {
@Test
public void withoutMessage() throws Exception {
facebook.setMockJSON("mock_json/post_id.json");
String actual = facebook.postEventLink("1234567890123456", new URL("http://facebook4j.org"));
String actual = facebook.postEventLink("1234567890123456", new URL("https://facebook4j.github.io"));
assertThat(facebook.getHttpMethod(), is(RequestMethod.POST));
assertThat(facebook.getEndpointURL(), is(pathOf("/1234567890123456/feed")));
assertThat(facebook.getHttpParameters(), hasPostParameter("link", "http://facebook4j.org"));
assertThat(facebook.getHttpParameters(), hasPostParameter("link", "https://facebook4j.github.io"));

assertThat(actual, is("137246726435626_185932178233747"));
}

@Test
public void withMessage() throws Exception {
facebook.setMockJSON("mock_json/post_id.json");
String actual = facebook.postEventLink("1234567890123456", new URL("http://facebook4j.org"), "unit test.");
String actual = facebook.postEventLink("1234567890123456", new URL("https://facebook4j.github.io"), "unit test.");
assertThat(facebook.getHttpMethod(), is(RequestMethod.POST));
assertThat(facebook.getEndpointURL(), is(pathOf("/1234567890123456/feed")));
assertThat(facebook.getHttpParameters(), hasPostParameter("link", "http://facebook4j.org"));
assertThat(facebook.getHttpParameters(), hasPostParameter("link", "https://facebook4j.github.io"));
assertThat(facebook.getHttpParameters(), hasPostParameter("message", "unit test."));

assertThat(actual, is("137246726435626_185932178233747"));
Expand Down
20 changes: 10 additions & 10 deletions facebook4j-core/src/test/java/facebook4j/GroupMethodsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,28 +306,28 @@ public void onlyMessage() throws Exception {
@Test
public void onlyURL() throws Exception {
facebook.setMockJSON("mock_json/post_id.json");
PostUpdate postUpdate = new PostUpdate(new URL("http://facebook4j.org"));
PostUpdate postUpdate = new PostUpdate(new URL("https://facebook4j.github.io"));
String actual = facebook.postGroupFeed("21212121212121", postUpdate);
assertThat(facebook.getHttpMethod(), is(RequestMethod.POST));
assertThat(facebook.getEndpointURL(), is(pathOf("/21212121212121/feed")));
assertThat(facebook.getHttpParameters(), hasPostParameter("link", "http://facebook4j.org"));
assertThat(facebook.getHttpParameters(), hasPostParameter("link", "https://facebook4j.github.io"));

assertThat(actual, is("137246726435626_185932178233747"));
}

@Test
public void share() throws Exception {
facebook.setMockJSON("mock_json/post_id.json");
PostUpdate postUpdate = new PostUpdate(new URL("http://facebook4j.org"))
.picture(new URL("http://facebook4j.org/images/hero.png"))
PostUpdate postUpdate = new PostUpdate(new URL("https://facebook4j.github.io"))
.picture(new URL("https://facebook4j.github.io/images/hero.png"))
.name("Facebook4J - A Java library for the Facebook Graph API")
.caption("facebook4j.org")
.description("Facebook4J is a Java library for the Facebook Graph API. This library provides the ease of use like Twitter4J. Facebook4J is an unofficial library.");
String actual = facebook.postGroupFeed("21212121212121", postUpdate);
assertThat(facebook.getHttpMethod(), is(RequestMethod.POST));
assertThat(facebook.getEndpointURL(), is(pathOf("/21212121212121/feed")));
assertThat(facebook.getHttpParameters(), hasPostParameter("link", "http://facebook4j.org"));
assertThat(facebook.getHttpParameters(), hasPostParameter("picture", "http://facebook4j.org/images/hero.png"));
assertThat(facebook.getHttpParameters(), hasPostParameter("link", "https://facebook4j.github.io"));
assertThat(facebook.getHttpParameters(), hasPostParameter("picture", "https://facebook4j.github.io/images/hero.png"));
assertThat(facebook.getHttpParameters(), hasPostParameter("name", "Facebook4J - A Java library for the Facebook Graph API"));
assertThat(facebook.getHttpParameters(), hasPostParameter("caption", "facebook4j.org"));
assertThat(facebook.getHttpParameters(), hasPostParameter("description", "Facebook4J is a Java library for the Facebook Graph API. This library provides the ease of use like Twitter4J. Facebook4J is an unofficial library."));
Expand All @@ -341,21 +341,21 @@ public static class postGroupLink extends MockFacebookTestBase {
@Test
public void onlyLink() throws Exception {
facebook.setMockJSON("mock_json/post_id.json");
String actual = facebook.postGroupLink("21212121212121", new URL("http://facebook4j.org"));
String actual = facebook.postGroupLink("21212121212121", new URL("https://facebook4j.github.io"));
assertThat(facebook.getHttpMethod(), is(RequestMethod.POST));
assertThat(facebook.getEndpointURL(), is(pathOf("/21212121212121/feed")));
assertThat(facebook.getHttpParameters(), hasPostParameter("link", "http://facebook4j.org"));
assertThat(facebook.getHttpParameters(), hasPostParameter("link", "https://facebook4j.github.io"));

assertThat(actual, is("137246726435626_185932178233747"));
}

@Test
public void withMessage() throws Exception {
facebook.setMockJSON("mock_json/post_id.json");
String actual = facebook.postGroupLink("21212121212121", new URL("http://facebook4j.org"), "The best Facebook API wrapper!");
String actual = facebook.postGroupLink("21212121212121", new URL("https://facebook4j.github.io"), "The best Facebook API wrapper!");
assertThat(facebook.getHttpMethod(), is(RequestMethod.POST));
assertThat(facebook.getEndpointURL(), is(pathOf("/21212121212121/feed")));
assertThat(facebook.getHttpParameters(), hasPostParameter("link", "http://facebook4j.org"));
assertThat(facebook.getHttpParameters(), hasPostParameter("link", "https://facebook4j.github.io"));
assertThat(facebook.getHttpParameters(), hasPostParameter("message", "The best Facebook API wrapper!"));

assertThat(actual, is("137246726435626_185932178233747"));
Expand Down
Loading

0 comments on commit baf2ca0

Please sign in to comment.