Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.452 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 13 Feb 2024 09:16:56 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 13 Feb 2024 09:19:57 GMT Content-Length: 11 Date: Tue, 13 Feb 2024 09:16:57 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 13 Feb 2024 09:16:57 GMT Expires: Tue, 13 Feb 2024 09:23:57 GMT Keep-Alive: timeout=3 ETag: W/"971-1707815168887" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 13 Feb 2024 09:17:57 GMT Content-Length: 0 Date: Tue, 13 Feb 2024 09:16:57 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 13 Feb 2024 09:17:57 GMT Content-Length: 11 Date: Tue, 13 Feb 2024 09:16:57 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 13 Feb 2024 09:17:58 GMT Content-Length: 11 Date: Tue, 13 Feb 2024 09:16:58 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 13 Feb 2024 09:23:58 GMT Content-Length: 11 Date: Tue, 13 Feb 2024 09:16:58 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: Tue, 13 Feb 2024 09:16:58 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 13 Feb 2024 09:16:58 GMT Content-Length: 11 Date: Tue, 13 Feb 2024 09:16:58 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 13 Feb 2024 09:21:58 GMT Content-Length: 11 Date: Tue, 13 Feb 2024 09:16:58 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 13 Feb 2024 09:23:58 GMT Content-Length: 0 Date: Tue, 13 Feb 2024 09:16:58 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 13-Feb-2024 09:16:55.322 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 13-Feb-2024 09:16:56.326 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 13-Feb-2024 09:16:56.390 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 09:16:56.394 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.99-dev] 13-Feb-2024 09:16:56.605 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-39053"] 13-Feb-2024 09:16:56.856 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-39053"] 13-Feb-2024 09:16:56.862 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 09:16:56.902 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-39053"] 13-Feb-2024 09:16:56.919 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-39053"] 13-Feb-2024 09:16:56.935 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 13-Feb-2024 09:16:56.938 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 13-Feb-2024 09:16:56.942 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 09:16:56.943 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.99-dev] 13-Feb-2024 09:16:57.019 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-41273"] 13-Feb-2024 09:16:57.089 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-41273"] 13-Feb-2024 09:16:57.090 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 09:16:57.096 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-41273"] 13-Feb-2024 09:16:57.103 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-41273"] 13-Feb-2024 09:16:57.107 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 13-Feb-2024 09:16:57.108 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 13-Feb-2024 09:16:57.109 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 13-Feb-2024 09:16:57.118 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 13-Feb-2024 09:16:57.134 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 09:16:57.136 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.99-dev] 13-Feb-2024 09:16:57.261 INFO [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 13-Feb-2024 09:16:57.469 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-34013"] 13-Feb-2024 09:16:57.574 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-34013"] 13-Feb-2024 09:16:57.576 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 09:16:57.622 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-34013"] 13-Feb-2024 09:16:57.631 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-34013"] 13-Feb-2024 09:16:57.637 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 13-Feb-2024 09:16:57.639 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 13-Feb-2024 09:16:57.645 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 09:16:57.645 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.99-dev] 13-Feb-2024 09:16:57.662 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-40403"] 13-Feb-2024 09:16:57.766 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-40403"] 13-Feb-2024 09:16:57.769 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 09:16:57.784 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-40403"] 13-Feb-2024 09:16:57.793 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-40403"] 13-Feb-2024 09:16:57.797 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 13-Feb-2024 09:16:57.799 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 13-Feb-2024 09:16:57.800 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 09:16:57.800 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.99-dev] 13-Feb-2024 09:16:57.818 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-34177"] 13-Feb-2024 09:16:57.840 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-34177"] 13-Feb-2024 09:16:57.843 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 09:16:57.846 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-34177"] 13-Feb-2024 09:16:57.849 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-34177"] 13-Feb-2024 09:16:57.853 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 13-Feb-2024 09:16:57.854 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 13-Feb-2024 09:16:57.855 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 13-Feb-2024 09:16:57.857 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 13-Feb-2024 09:16:57.858 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 09:16:57.860 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.99-dev] 13-Feb-2024 09:16:57.912 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-41007"] 13-Feb-2024 09:16:57.942 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-41007"] 13-Feb-2024 09:16:57.946 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 09:16:57.962 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-41007"] 13-Feb-2024 09:16:57.968 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-41007"] 13-Feb-2024 09:16:57.977 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 13-Feb-2024 09:16:57.979 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 13-Feb-2024 09:16:57.980 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 09:16:57.980 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.99-dev] 13-Feb-2024 09:16:58.030 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-38961"] 13-Feb-2024 09:16:58.105 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-38961"] 13-Feb-2024 09:16:58.108 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 09:16:58.114 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-38961"] 13-Feb-2024 09:16:58.118 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-38961"] 13-Feb-2024 09:16:58.121 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 13-Feb-2024 09:16:58.125 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 13-Feb-2024 09:16:58.126 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 09:16:58.126 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.99-dev] 13-Feb-2024 09:16:58.160 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-44037"] 13-Feb-2024 09:16:58.171 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-44037"] 13-Feb-2024 09:16:58.175 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 09:16:58.178 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-44037"] 13-Feb-2024 09:16:58.180 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-44037"] 13-Feb-2024 09:16:58.186 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 13-Feb-2024 09:16:58.188 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 13-Feb-2024 09:16:58.189 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 09:16:58.189 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.99-dev] 13-Feb-2024 09:16:58.214 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-45457"] 13-Feb-2024 09:16:58.258 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-45457"] 13-Feb-2024 09:16:58.259 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 09:16:58.263 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-45457"] 13-Feb-2024 09:16:58.266 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-45457"] 13-Feb-2024 09:16:58.269 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 13-Feb-2024 09:16:58.270 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 13-Feb-2024 09:16:58.271 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 13-Feb-2024 09:16:58.272 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 13-Feb-2024 09:16:58.273 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 09:16:58.273 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.99-dev] 13-Feb-2024 09:16:58.288 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-43859"] 13-Feb-2024 09:16:58.293 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-43859"] 13-Feb-2024 09:16:58.294 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 09:16:58.299 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-43859"] 13-Feb-2024 09:16:58.302 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-43859"] 13-Feb-2024 09:16:58.306 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 13-Feb-2024 09:16:58.308 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 13-Feb-2024 09:16:58.308 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 09:16:58.308 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.99-dev] 13-Feb-2024 09:16:58.334 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-37285"] 13-Feb-2024 09:16:58.345 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-37285"] 13-Feb-2024 09:16:58.346 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 09:16:58.349 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-37285"] 13-Feb-2024 09:16:58.352 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-37285"] 13-Feb-2024 09:16:58.360 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 13-Feb-2024 09:16:58.361 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 13-Feb-2024 09:16:58.361 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 09:16:58.362 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.99-dev] 13-Feb-2024 09:16:58.373 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-33219"] 13-Feb-2024 09:16:58.388 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-33219"] 13-Feb-2024 09:16:58.391 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 09:16:58.394 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-33219"] 13-Feb-2024 09:16:58.396 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-33219"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.923 sec Testcase: testUseContentTypeExpiresConfiguration took 0.175 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.527 sec Testcase: testConfiguration took 0.16 sec Testcase: testNullContentType took 0.055 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.122 sec Testcase: testUseDefaultConfiguration2 took 0.143 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.064 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.084 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.035 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.05 sec Testcase: testEmptyContent took 0.043 sec