Package ninja.utils
Class ResultHandlerTest
- java.lang.Object
-
- ninja.utils.ResultHandlerTest
-
public class ResultHandlerTest extends Object
-
-
Constructor Summary
Constructors Constructor Description ResultHandlerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
void
testAddingOfDefaultHeadersWorks()
If Cache-Control is not set the no-cache strategy has to be applied.void
testCacheControlDoesNotGetTouchedWhenSet()
void
testContentNegotiation()
void
testRenderPictureFromBytes()
void
testRenderPlainStringAndSetDefaultContentType()
void
testRenderPlainStringLeavesExplicitlySetContentTypeUntouched()
void
testThatFallbackContentTypeWorks()
void
testThatNoHttpBodyWorks()
-
-
-
Method Detail
-
testAddingOfDefaultHeadersWorks
public void testAddingOfDefaultHeadersWorks()
If Cache-Control is not set the no-cache strategy has to be applied. We expect Cache-Control: ... Date: ... Expires: ...
-
testCacheControlDoesNotGetTouchedWhenSet
public void testCacheControlDoesNotGetTouchedWhenSet()
-
testRenderPlainStringAndSetDefaultContentType
public void testRenderPlainStringAndSetDefaultContentType()
-
testContentNegotiation
public void testContentNegotiation()
-
testRenderPlainStringLeavesExplicitlySetContentTypeUntouched
public void testRenderPlainStringLeavesExplicitlySetContentTypeUntouched()
-
testRenderPictureFromBytes
public void testRenderPictureFromBytes()
-
testThatNoHttpBodyWorks
public void testThatNoHttpBodyWorks()
-
testThatFallbackContentTypeWorks
public void testThatFallbackContentTypeWorks()
-
-