Skip to content

Commit

Permalink
Fixes #1592: Assert more testing parameters to QuoraProfileScraperTest (
Browse files Browse the repository at this point in the history
  • Loading branch information
simsausaurabh authored and singhpratyush committed May 3, 2018
1 parent c7b93f0 commit cfc4d42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/org/loklak/api/search/QuoraProfileScraperTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public void quoraProfileScraperUserTest() {
String editsUrl = "https://www.quora.com/profile/Saptak-Sengupta/log";
String postsUrl = "https://www.quora.com/profile/Saptak-Sengupta/all_posts";
String questionsUrl = "https://www.quora.com/profile/Saptak-Sengupta/questions";
String postType = "user";

try {
ClientConnection connection = new ClientConnection(url);
Expand All @@ -57,6 +58,8 @@ public void quoraProfileScraperUserTest() {
JSONObject quoraProfile = (JSONObject)profileList.get(0);

assertNotNull(quoraProfile.getString("bio"));
assertNotNull(quoraProfile.getString("works_at"));
assertEquals(postType, quoraProfile.getString("post_type"));
assertEquals(url, quoraProfile.getString("search_url"));
assertEquals(userName, quoraProfile.getString("user_name"));
assertEquals(profileImagePath, quoraProfile.getString("profileImage").substring(quoraProfile.getString("profileImage").length()-profileImagePath.length()));
Expand Down

0 comments on commit cfc4d42

Please sign in to comment.