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 voidinit()voidtestAddingOfDefaultHeadersWorks()If Cache-Control is not set the no-cache strategy has to be applied.voidtestCacheControlDoesNotGetTouchedWhenSet()voidtestContentNegotiation()voidtestRenderPictureFromBytes()voidtestRenderPlainStringAndSetDefaultContentType()voidtestRenderPlainStringLeavesExplicitlySetContentTypeUntouched()voidtestThatFallbackContentTypeWorks()voidtestThatNoHttpBodyWorks()
-
-
-
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()
-
-