Skip to content

Commit

Permalink
Test for age_range
Browse files Browse the repository at this point in the history
test for age_range support
  • Loading branch information
paolobiavati committed Jan 13, 2015
1 parent 81c9e21 commit 0ccdfe0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void me() throws Exception {
@Test
public void reading() throws Exception {
facebook.setMockJSON("mock_json/user/me_fields.json");
User me = facebook.getMe(new Reading().fields("gender").fields("email"));
User me = facebook.getMe(new Reading().fields("gender").fields("email").fields("age_range"));

assertThat(me.getGender(), is("male"));
assertThat(me.getEmail(), is("roundrop@gmail.com"));
Expand All @@ -94,6 +94,10 @@ public void reading() throws Exception {
assertThat(me.getBirthday(), is(nullValue()));
assertThat(me.getEducation().size(), is(0));
assertThat(me.getHometown(), is(nullValue()));

assertThat(me.getAgeRange().getMin(), is(17L));
assertThat(me.getAgeRange().getMax(), is(20L));

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
"gender": "male",
"email": "roundrop@gmail.com",
"id": "6666",
"age_range":{"min": 17,"max": 20},
}

0 comments on commit 0ccdfe0

Please sign in to comment.