Class TestFacebookGraphApi
- java.lang.Object
-
- com.damnhandy.uri.template.examples.AbstractExampleTest
-
- com.damnhandy.uri.template.examples.TestFacebookGraphApi
-
public class TestFacebookGraphApi extends AbstractExampleTest
A collection of tests that demonstrate how URI Templates can be used to interact with the Facebook Graph API. These tests use some of the examples found on the Facebook Graph API reference: https://developers.facebook.com/docs/reference/api/ You will need your Facebook access token in a System property:-Dfb.access_token=
- Version:
- $Revision: 1.1 $
- Author:
- Ryan J. McDonough
-
-
Constructor Summary
Constructors Constructor Description TestFacebookGraphApi()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
facebookGraphApiAllFields()
void
facebookGraphApiFQL()
void
facebookGraphApiGetSubResource()
void
facebookGraphApiPlacesSearch()
void
facebookGraphApiSelectiveFields()
void
facebookGraphApiSelectiveFieldsWithList()
void
facebookGraphApiSelectiveFieldsWithListWithAlbums()
Same as the previous test, but demonstrates how aList
can be used rather than an array.static void
setUp()
Checks assumptions that the Facebook Access token is set.-
Methods inherited from class com.damnhandy.uri.template.examples.AbstractExampleTest
createClient, createClient, executeRequest
-
-
-
-
Method Detail
-
setUp
public static void setUp()
Checks assumptions that the Facebook Access token is set.
-
facebookGraphApiAllFields
public void facebookGraphApiAllFields() throws Exception
- Throws:
Exception
-
facebookGraphApiGetSubResource
public void facebookGraphApiGetSubResource() throws Exception
- Throws:
Exception
-
facebookGraphApiSelectiveFields
public void facebookGraphApiSelectiveFields() throws Exception
- Throws:
Exception
-
facebookGraphApiSelectiveFieldsWithListWithAlbums
public void facebookGraphApiSelectiveFieldsWithListWithAlbums() throws Exception
Same as the previous test, but demonstrates how aList
can be used rather than an array.- Throws:
Exception
-
facebookGraphApiSelectiveFieldsWithList
public void facebookGraphApiSelectiveFieldsWithList() throws Exception
- Throws:
Exception
-
-