@MediumTest
@LargeTest
public void testExecutePlaceRequestWithLocationAndSearchText() {
TestSession session = openTestSessionWithSharedUser();
Location location = new Location("");
location.setLatitude(47.6204);
location.setLongitude(-122.3491);
Request request = Request.newPlacesSearchRequest(session, location, 1000, 5, "Starbucks", null);
Response response = request.executeAndWait();
assertNotNull(response);
assertNull(response.getError());
GraphMultiResult graphResult = response.getGraphObjectAs(GraphMultiResult.class);
assertNotNull(graphResult);
List<GraphObject> results = graphResult.getData();
assertNotNull(results);
}
RequestTests.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:LostAndFound
作者:
评论列表
文章目录