Class AbstractExampleTest
- java.lang.Object
-
- com.damnhandy.uri.template.examples.AbstractExampleTest
-
- Direct Known Subclasses:
TestFacebookGraphApi
,TestGitHubApis
,TestTwitterSearchApi
public abstract class AbstractExampleTest extends Object
- Version:
- $Revision: 1.1 $
- Author:
- Ryan J. McDonough
-
-
Constructor Summary
Constructors Constructor Description AbstractExampleTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.ning.http.client.AsyncHttpClient
createClient()
protected com.ning.http.client.AsyncHttpClient
createClient(String principal, String password)
protected void
executeRequest(com.ning.http.client.AsyncHttpClient client, com.ning.http.client.Request request)
-
-
-
Method Detail
-
executeRequest
protected void executeRequest(com.ning.http.client.AsyncHttpClient client, com.ning.http.client.Request request) throws InterruptedException, ExecutionException, TimeoutException, IOException
- Parameters:
request
-- Throws:
InterruptedException
ExecutionException
TimeoutException
IOException
-
createClient
protected com.ning.http.client.AsyncHttpClient createClient(String principal, String password)
- Returns:
-
createClient
protected com.ning.http.client.AsyncHttpClient createClient()
-
-