Created
November 30, 2010 13:21
-
-
Save jfarcand/721660 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test(groups = "standalone") | |
public void basicTest() throws Throwable { | |
AsyncHttpClient c = new AsyncHttpClient(); | |
ResumableAsyncHandler<Response> a = new ResumableAsyncHandler<Response>(new PropertiesBasedResumableProcessor()); | |
a.setResumableListener(new ResumableRandomAccessFileHandler(new RandomAccessFile("shrek1.avi", "rw"))); | |
Response r = c.prepareGet("http://192.168.2.106:8081/shrek1.AVI").execute(a).get(); | |
assertEquals(r.getStatusCode(), 200); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment