Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.596 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Thu, 29 Feb 2024 16:38:44 GMT Keep-Alive: timeout=3 Cache-Control: max-age=179 Connection: keep-alive Expires: Thu, 29 Feb 2024 16:41:44 GMT Content-Length: 11 Date: Thu, 29 Feb 2024 16:38:44 GMT Content-Type: text/xml;charset=utf-8 Date: Thu, 29 Feb 2024 16:38:44 GMT Expires: Thu, 29 Feb 2024 16:45:45 GMT Keep-Alive: timeout=3 ETag: W/"971-1709224086451" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 29 Feb 2024 16:39:45 GMT Content-Length: 0 Date: Thu, 29 Feb 2024 16:38:44 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 29 Feb 2024 16:39:45 GMT Content-Length: 11 Date: Thu, 29 Feb 2024 16:38:44 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Thu, 29 Feb 2024 16:39:45 GMT Content-Length: 11 Date: Thu, 29 Feb 2024 16:38:44 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 29 Feb 2024 16:45:45 GMT Content-Length: 11 Date: Thu, 29 Feb 2024 16:38:44 GMT Content-Type: text/json;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=232 Connection: keep-alive Content-Length: 11 Date: Thu, 29 Feb 2024 16:38:44 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Thu, 29 Feb 2024 16:38:45 GMT Content-Length: 11 Date: Thu, 29 Feb 2024 16:38:44 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Thu, 29 Feb 2024 16:43:45 GMT Content-Length: 11 Date: Thu, 29 Feb 2024 16:38:44 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 29 Feb 2024 16:45:45 GMT Content-Length: 0 Date: Thu, 29 Feb 2024 16:38:44 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 29-Feb-2024 16:38:43.569 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 29-Feb-2024 16:38:44.491 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 29-Feb-2024 16:38:44.544 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 29-Feb-2024 16:38:44.545 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 29-Feb-2024 16:38:44.671 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-41743"] 29-Feb-2024 16:38:44.880 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-41743"] 29-Feb-2024 16:38:44.883 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 29-Feb-2024 16:38:44.901 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-41743"] 29-Feb-2024 16:38:44.915 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-41743"] 29-Feb-2024 16:38:44.930 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 29-Feb-2024 16:38:44.934 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 29-Feb-2024 16:38:44.934 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 29-Feb-2024 16:38:44.935 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 29-Feb-2024 16:38:44.948 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-42395"] 29-Feb-2024 16:38:44.982 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-42395"] 29-Feb-2024 16:38:44.985 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 29-Feb-2024 16:38:44.988 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-42395"] 29-Feb-2024 16:38:44.995 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-42395"] 29-Feb-2024 16:38:45.005 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 29-Feb-2024 16:38:45.017 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 29-Feb-2024 16:38:45.021 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 29-Feb-2024 16:38:45.028 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 29-Feb-2024 16:38:45.029 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 29-Feb-2024 16:38:45.029 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 29-Feb-2024 16:38:45.090 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 29-Feb-2024 16:38:45.337 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-33845"] 29-Feb-2024 16:38:45.396 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-33845"] 29-Feb-2024 16:38:45.399 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 29-Feb-2024 16:38:45.404 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-33845"] 29-Feb-2024 16:38:45.417 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-33845"] 29-Feb-2024 16:38:45.419 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 29-Feb-2024 16:38:45.428 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 29-Feb-2024 16:38:45.430 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 29-Feb-2024 16:38:45.430 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 29-Feb-2024 16:38:45.446 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-42037"] 29-Feb-2024 16:38:45.510 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-42037"] 29-Feb-2024 16:38:45.511 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 29-Feb-2024 16:38:45.513 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-42037"] 29-Feb-2024 16:38:45.522 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-42037"] 29-Feb-2024 16:38:45.525 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 29-Feb-2024 16:38:45.527 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 29-Feb-2024 16:38:45.539 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 29-Feb-2024 16:38:45.540 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 29-Feb-2024 16:38:45.559 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-34269"] 29-Feb-2024 16:38:45.569 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-34269"] 29-Feb-2024 16:38:45.569 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 29-Feb-2024 16:38:45.571 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-34269"] 29-Feb-2024 16:38:45.582 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-34269"] 29-Feb-2024 16:38:45.585 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 29-Feb-2024 16:38:45.588 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 29-Feb-2024 16:38:45.589 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 29-Feb-2024 16:38:45.591 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 29-Feb-2024 16:38:45.592 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 29-Feb-2024 16:38:45.593 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 29-Feb-2024 16:38:45.607 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-41057"] 29-Feb-2024 16:38:45.619 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-41057"] 29-Feb-2024 16:38:45.623 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 29-Feb-2024 16:38:45.625 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-41057"] 29-Feb-2024 16:38:45.631 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-41057"] 29-Feb-2024 16:38:45.634 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 29-Feb-2024 16:38:45.636 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 29-Feb-2024 16:38:45.637 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 29-Feb-2024 16:38:45.637 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 29-Feb-2024 16:38:45.646 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-44043"] 29-Feb-2024 16:38:45.672 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-44043"] 29-Feb-2024 16:38:45.674 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 29-Feb-2024 16:38:45.678 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-44043"] 29-Feb-2024 16:38:45.682 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-44043"] 29-Feb-2024 16:38:45.684 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 29-Feb-2024 16:38:45.688 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 29-Feb-2024 16:38:45.688 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 29-Feb-2024 16:38:45.688 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 29-Feb-2024 16:38:45.693 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-38333"] 29-Feb-2024 16:38:45.720 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-38333"] 29-Feb-2024 16:38:45.723 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 29-Feb-2024 16:38:45.725 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-38333"] 29-Feb-2024 16:38:45.728 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-38333"] 29-Feb-2024 16:38:45.730 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 29-Feb-2024 16:38:45.732 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 29-Feb-2024 16:38:45.732 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 29-Feb-2024 16:38:45.733 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 29-Feb-2024 16:38:45.746 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-39065"] 29-Feb-2024 16:38:45.757 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-39065"] 29-Feb-2024 16:38:45.758 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 29-Feb-2024 16:38:45.760 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-39065"] 29-Feb-2024 16:38:45.764 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-39065"] 29-Feb-2024 16:38:45.768 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 29-Feb-2024 16:38:45.770 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 29-Feb-2024 16:38:45.771 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 29-Feb-2024 16:38:45.773 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 29-Feb-2024 16:38:45.774 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 29-Feb-2024 16:38:45.774 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 29-Feb-2024 16:38:45.810 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-46299"] 29-Feb-2024 16:38:45.827 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-46299"] 29-Feb-2024 16:38:45.830 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 29-Feb-2024 16:38:45.831 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-46299"] 29-Feb-2024 16:38:45.835 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-46299"] 29-Feb-2024 16:38:45.841 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 29-Feb-2024 16:38:45.844 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 29-Feb-2024 16:38:45.845 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 29-Feb-2024 16:38:45.846 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 29-Feb-2024 16:38:45.878 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-44121"] 29-Feb-2024 16:38:45.894 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-44121"] 29-Feb-2024 16:38:45.897 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 29-Feb-2024 16:38:45.899 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-44121"] 29-Feb-2024 16:38:45.910 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-44121"] 29-Feb-2024 16:38:45.912 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 29-Feb-2024 16:38:45.913 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 29-Feb-2024 16:38:45.914 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 29-Feb-2024 16:38:45.914 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 29-Feb-2024 16:38:45.918 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-34915"] 29-Feb-2024 16:38:45.942 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-34915"] 29-Feb-2024 16:38:45.944 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 29-Feb-2024 16:38:45.946 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-34915"] 29-Feb-2024 16:38:45.954 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-34915"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.519 sec Testcase: testUseContentTypeExpiresConfiguration took 0.067 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.021 sec Testcase: testBug63909 took 0.4 sec Testcase: testConfiguration took 0.104 sec Testcase: testNullContentType took 0.061 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.005 sec Testcase: testUseDefaultConfiguration1 took 0.043 sec Testcase: testUseDefaultConfiguration2 took 0.05 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.045 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.038 sec Testcase: testIntsToCommaDelimitedString took 0.003 sec Testcase: testSkipBecauseExpiresIsDefined took 0.071 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.07 sec Testcase: testEmptyContent took 0.044 sec