public class JsonRpcServletTest extends Assert
| Constructor and Description |
|---|
JsonRpcServletTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testBasicBatch() |
void |
testDisallowJSONP() |
void |
testFailedRequest()
Tests a data handler that returns a failed Future.
|
void |
testGetExecution() |
void |
testGetJsonResponseErrorWithData() |
void |
testGetJsonResponseErrorWithoutData() |
void |
testGetJsonResponseWithKey() |
void |
testGetJsonResponseWithoutKey() |
void |
testInvalidService() |
void |
testMethodRecognition() |
void |
testPostMultipartFormData() |
void |
testPostMultipartFormDataOnlyRequestFieldHasContentTypeChecked()
Test that any form-data other than "request" does not undergo any content type check.
|
void |
testPostMultipartFormDataRequestFieldIsSubjectedToContentTypeCheck()
Test that "request" field undergoes contentType check, and error is thrown if wrong content
type is present.
|
void |
testPostMultipartFormDataWithRequestFieldHavingNoContentType()
Test that it passes even when content-type is not set for "request" parameter.
|
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, failpublic void testPostMultipartFormData()
throws Exception
Exceptionpublic void testPostMultipartFormDataWithRequestFieldHavingNoContentType()
throws Exception
Exceptionpublic void testPostMultipartFormDataOnlyRequestFieldHasContentTypeChecked()
throws Exception
Exceptionpublic void testPostMultipartFormDataRequestFieldIsSubjectedToContentTypeCheck()
throws Exception
Exceptionpublic void testFailedRequest()
throws Exception
Exception - on failurepublic void testGetJsonResponseWithKey()
throws Exception
Exceptionpublic void testGetJsonResponseWithoutKey()
throws Exception
Exceptionpublic void testGetJsonResponseErrorWithData()
throws Exception
ExceptionCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.