public class TestNanoHTTPD extends TestCase2
NanoHTTPD.TestCase2.MyProperties, TestCase2.RandomType_randomType, log| Constructor and Description |
|---|
TestNanoHTTPD() |
TestNanoHTTPD(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
test_get() |
void |
test_getDecodeParams()
Unit test for URL query parameter decode for GET.
|
void |
test_getStream() |
void |
test_post_application_octet_stream_usingOutputStream()
Post with a non-empty request body using
application/octet-stream. |
void |
test_post_application_octet_stream_usingWriter()
Post with a non-empty request body using
application/octet-stream. |
void |
test_post_application_x_www_form_urlencoded()
Post with
application/x-www-form-urlencoded parameters in a
request body. |
void |
test_post_emptyBody()
Post with an empty request body.
|
void |
test_startShutdown() |
void |
test_startShutdownNow() |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getProperties, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logPropertiesassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringpublic TestNanoHTTPD()
public TestNanoHTTPD(String name)
name - public void test_startShutdownNow()
throws IOException
IOExceptionpublic void test_startShutdown()
throws IOException,
InterruptedException,
ExecutionException,
TimeoutException
public void test_get()
throws IOException
IOExceptionpublic void test_getDecodeParams()
throws IOException
IOExceptionpublic void test_getStream()
throws IOException
IOExceptionpublic void test_post_emptyBody()
throws IOException
IOExceptionpublic void test_post_application_x_www_form_urlencoded()
throws IOException
application/x-www-form-urlencoded parameters in a
request body.IOExceptionpublic void test_post_application_octet_stream_usingOutputStream()
throws IOException
application/octet-stream. The request body is written using
the raw OutputStream.IOExceptionpublic void test_post_application_octet_stream_usingWriter()
throws IOException
application/octet-stream. The request body is written using
a Writer.IOExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.