public class RequestAPITest extends AndroidTestCase
mContext
Constructor and Description |
---|
RequestAPITest() |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testChunked() |
void |
testGet() |
void |
testGetAndHead() |
void |
testHead() |
void |
testPost() |
void |
testPostWithData() |
void |
testRedirect301() |
void |
testRedirect302() |
void |
testRedirect303() |
void |
testRedirect307() |
void |
testRequestAddEmptyValue() |
void |
testRequestAddHeader() |
void |
testRequestAddMultiHeader() |
void |
testRequestAddNullHeader() |
void |
testRequestAddNullHeaders() |
void |
testRequestAddNullValue() |
void |
testRequestAddSameHeader() |
void |
testReuse() |
void |
verifyFailure(Map<String,String> headers) |
void |
verifyRedirect(int statusCode,
String testName) |
void |
verifySuccess(Map<String,String> headers) |
assertActivityRequiresPermission, assertReadingContentUriRequiresPermission, assertWritingContentUriRequiresPermission, getContext, getTestContext, scrubClass, setContext, setTestContext, testAndroidTestCaseSetupProperly
public static Object syncObj
public static final int HTTP_OK
public static final int HTTP_CREATED
public static final int HTTP_ACCEPTED
public static final int HTTP_NOT_AUTHORITATIVE
public static final int HTTP_NO_CONTENT
public static final int HTTP_RESET
public static final int HTTP_PARTIAL
public static final int HTTP_MULT_CHOICE
public static final int HTTP_MOVED_PERM
public static final int HTTP_MOVED_TEMP
public static final int HTTP_SEE_OTHER
public static final int HTTP_NOT_MODIFIED
public static final int HTTP_USE_PROXY
public static final int HTTP_BAD_REQUEST
public static final int HTTP_UNAUTHORIZED
public static final int HTTP_PAYMENT_REQUIRED
public static final int HTTP_FORBIDDEN
public static final int HTTP_NOT_FOUND
public static final int HTTP_BAD_METHOD
public static final int HTTP_NOT_ACCEPTABLE
public static final int HTTP_PROXY_AUTH
public static final int HTTP_CLIENT_TIMEOUT
public static final int HTTP_CONFLICT
public static final int HTTP_GONE
public static final int HTTP_LENGTH_REQUIRED
public static final int HTTP_PRECON_FAILED
public static final int HTTP_ENTITY_TOO_LARGE
public static final int HTTP_REQ_TOO_LONG
public static final int HTTP_UNSUPPORTED_TYPE
public static final int HTTP_SERVER_ERROR
public static final int HTTP_INTERNAL_ERROR
public static final int HTTP_BAD_GATEWAY
public static final int HTTP_UNAVAILABLE
public static final int HTTP_GATEWAY_TIMEOUT
public static final int HTTP_VERSION
public static final int UNKNOWN_METHOD
public static final int GET_METHOD
public static final int HEAD_METHOD
public static final int POST_METHOD
public static final String[] requestHeaders
public static final int REQ_UNKNOWN
public static final int REQ_CACHE_CONTROL
public static final int REQ_CONNECTION
public static final int REQ_DATE
public static final int REQ_PRAGMA
public static final int REQ_TRAILER
public static final int REQ_TRANSFER_ENCODING
public static final int REQ_UPGRADE
public static final int REQ_VIA
public static final int REQ_WARNING
public static final int REQ_ACCEPT
public static final int REQ_ACCEPT_CHARSET
public static final int REQ_ACCEPT_ENCODING
public static final int REQ_ACCEPT_LANGUAGE
public static final int REQ_AUTHORIZATION
public static final int REQ_EXPECT
public static final int REQ_FROM
public static final int REQ_HOST
public static final int REQ_IF_MATCH
public static final int REQ_IF_MODIFIED_SINCE
public static final int REQ_IF_NONE_MATCH
public static final int REQ_IF_RANGE
public static final int REQ_IF_UNMODIFIED_SINCE
public static final int REQ_MAX_FORWARDS
public static final int REQ_PROXY_AUTHENTICATION
public static final int REQ_RANGE
public static final int REQ_REFERER
public static final int REQ_TE
public static final int REQ_USER_AGENT
public static final int REQ_KEEP_ALIVE
public static final int REQ_ALLOW
public static final int REQ_CONTENT_ENCODING
public static final int REQ_CONTENT_LANGUAGE
public static final int REQ_CONTENT_LENGTH
public static final int REQ_CONTENT_LOCATION
public static final int REQ_CONTENT_MD5
public static final int REQ_CONTENT_RANGE
public static final int REQ_CONTENT_TYPE
public static final int REQ_EXPIRES
public static final int REQ_LAST_MODIFIED
public static final int REQ_LOCATION
public static final int REQ_SERVER
protected void setUp() throws Exception
setUp
in class AndroidTestCase
Exception
protected void tearDown() throws Exception
tearDown
in class AndroidTestCase
Exception
public void testRequestAddMultiHeader() throws Exception
Exception
public void testRequestAddNullHeaders() throws Exception
Exception
public void verifyRedirect(int statusCode, String testName) throws Exception
Exception