Package ninja.utils

Class ResultHandlerTest


  • public class ResultHandlerTest
    extends Object
    • Constructor Detail

      • ResultHandlerTest

        public ResultHandlerTest()
    • 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()