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, logProperties
assertEquals, 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, toString
public TestNanoHTTPD()
public TestNanoHTTPD(String name)
name
- public void test_startShutdownNow() throws IOException
IOException
public void test_startShutdown() throws IOException, InterruptedException, ExecutionException, TimeoutException
public void test_get() throws IOException
IOException
public void test_getDecodeParams() throws IOException
IOException
public void test_getStream() throws IOException
IOException
public void test_post_emptyBody() throws IOException
IOException
public void test_post_application_x_www_form_urlencoded() throws IOException
application/x-www-form-urlencoded
parameters in a
request body.IOException
public void test_post_application_octet_stream_usingOutputStream() throws IOException
application/octet-stream
. The request body is written using
the raw OutputStream
.IOException
public void test_post_application_octet_stream_usingWriter() throws IOException
application/octet-stream
. The request body is written using
a Writer
.IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.