}
public void testSendAsyncGetRequest() throws Exception{
GDataRequest gdataRequest = new GDataRequest("http://www.therandomhomepage.com");
Request sentRequest = gdataRequest.sendGetRequest(new RequestCallback(){
public void onResponseReceived(Request request, Response response) {
assertTrue(!request.isPending());
System.out.println("response = " + response.getText());
finishTest();
}
public void onError(Request request, Throwable exception) {
fail("Shouldn't have come here");
}
});
assertTrue(sentRequest.isPending());
delayTestFinish(1000 * 60);
}