Skip to content

Commit

Permalink
Fix loklak#1556: Fix GithubProfileScraper test (loklak#1557)
Browse files Browse the repository at this point in the history
  • Loading branch information
S2606 authored and singhpratyush committed Dec 12, 2017
1 parent 8d521a8 commit bd66699
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/org/loklak/api/search/GithubProfileScraperTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void githubProfileScraperOrgTest() {
String userName = "fossasia";
String userId = "6295529";
String location = "Singapore";
String specialLink = "http://fossasia.org";
String specialLink = "https://fossasia.org";

try {
ClientConnection connection = new ClientConnection(url);
Expand All @@ -46,11 +46,11 @@ public void githubProfileScraperOrgTest() {

Post fetchedProfile = githubScraper.scrapeGithub(profile, br);

assertEquals(fetchedProfile.getString("short_description"), shortDescription);
assertEquals(fetchedProfile.getString("user"), userName);
assertEquals(fetchedProfile.getString("user_id"), userId);
assertEquals(fetchedProfile.getString("location"), location);
assertEquals(fetchedProfile.getString("special_link"), specialLink);
assertEquals(shortDescription, fetchedProfile.getString("short_description"));
assertEquals(userName, fetchedProfile.getString("user"));
assertEquals(userId, fetchedProfile.getString("user_id"));
assertEquals(location, fetchedProfile.getString("location"));
assertEquals(specialLink, fetchedProfile.getString("special_link"));

}

Expand Down Expand Up @@ -81,10 +81,10 @@ public void githubProfileScraperUserTest() {

Post fetchedProfile = githubScraper.scrapeGithub(profile, br);

assertEquals(fetchedProfile.getString("user"), userName);
assertEquals(fetchedProfile.getString("full_name"), fullName);
assertEquals(fetchedProfile.getString("special_link"), specialLink);
assertEquals(fetchedProfile.getString("user_id"), userId);
assertEquals(userName, fetchedProfile.getString("user"));
assertEquals(fullName, fetchedProfile.getString("full_name"));
assertEquals(specialLink, fetchedProfile.getString("special_link"));
assertEquals(userId, fetchedProfile.getString("user_id"));
}

}

0 comments on commit bd66699

Please sign in to comment.