Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.507 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Wed, 14 Feb 2024 09:07:50 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:10:51 GMT Content-Length: 11 Date: Wed, 14 Feb 2024 09:07:51 GMT Content-Type: text/xml;charset=utf-8 Date: Wed, 14 Feb 2024 09:07:51 GMT Expires: Wed, 14 Feb 2024 09:14:51 GMT Keep-Alive: timeout=3 ETag: W/"971-1707900970339" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:08:51 GMT Content-Length: 0 Date: Wed, 14 Feb 2024 09:07:51 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:08:52 GMT Content-Length: 11 Date: Wed, 14 Feb 2024 09:07:52 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:08:52 GMT Content-Length: 11 Date: Wed, 14 Feb 2024 09:07:52 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:14:52 GMT Content-Length: 11 Date: Wed, 14 Feb 2024 09:07:52 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: Wed, 14 Feb 2024 09:07:52 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:07:52 GMT Content-Length: 11 Date: Wed, 14 Feb 2024 09:07:52 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:12:52 GMT Content-Length: 11 Date: Wed, 14 Feb 2024 09:07:52 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:14:52 GMT Content-Length: 0 Date: Wed, 14 Feb 2024 09:07:52 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 14-Feb-2024 09:07:49.442 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 14-Feb-2024 09:07:50.319 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 14-Feb-2024 09:07:50.388 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:07:50.388 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:07:50.630 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-46141"] 14-Feb-2024 09:07:50.877 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-46141"] 14-Feb-2024 09:07:50.879 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:07:50.928 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-46141"] 14-Feb-2024 09:07:50.936 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-46141"] 14-Feb-2024 09:07:50.954 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 14-Feb-2024 09:07:50.958 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 14-Feb-2024 09:07:50.959 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:07:50.959 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:07:50.965 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-34081"] 14-Feb-2024 09:07:51.019 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-34081"] 14-Feb-2024 09:07:51.022 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:07:51.025 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-34081"] 14-Feb-2024 09:07:51.028 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-34081"] 14-Feb-2024 09:07:51.030 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 14-Feb-2024 09:07:51.033 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 14-Feb-2024 09:07:51.046 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 14-Feb-2024 09:07:51.068 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 14-Feb-2024 09:07:51.069 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:07:51.069 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:07:51.182 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 14-Feb-2024 09:07:51.438 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-43791"] 14-Feb-2024 09:07:51.621 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-43791"] 14-Feb-2024 09:07:51.621 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:07:51.635 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-43791"] 14-Feb-2024 09:07:51.644 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-43791"] 14-Feb-2024 09:07:51.646 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 14-Feb-2024 09:07:51.648 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 14-Feb-2024 09:07:51.649 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:07:51.649 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:07:51.683 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-41593"] 14-Feb-2024 09:07:51.758 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-41593"] 14-Feb-2024 09:07:51.758 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:07:51.761 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-41593"] 14-Feb-2024 09:07:51.764 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-41593"] 14-Feb-2024 09:07:51.766 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 14-Feb-2024 09:07:51.767 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 14-Feb-2024 09:07:51.770 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:07:51.771 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:07:51.786 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-39275"] 14-Feb-2024 09:07:51.908 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-39275"] 14-Feb-2024 09:07:51.913 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:07:51.915 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-39275"] 14-Feb-2024 09:07:51.923 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-39275"] 14-Feb-2024 09:07:51.925 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 14-Feb-2024 09:07:51.925 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 14-Feb-2024 09:07:51.926 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 14-Feb-2024 09:07:51.928 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 14-Feb-2024 09:07:51.928 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:07:51.929 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:07:51.942 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-46157"] 14-Feb-2024 09:07:52.023 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-46157"] 14-Feb-2024 09:07:52.024 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:07:52.025 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-46157"] 14-Feb-2024 09:07:52.028 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-46157"] 14-Feb-2024 09:07:52.035 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 14-Feb-2024 09:07:52.037 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 14-Feb-2024 09:07:52.037 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:07:52.037 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:07:52.042 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-32835"] 14-Feb-2024 09:07:52.071 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-32835"] 14-Feb-2024 09:07:52.074 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:07:52.079 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-32835"] 14-Feb-2024 09:07:52.087 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-32835"] 14-Feb-2024 09:07:52.089 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 14-Feb-2024 09:07:52.090 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 14-Feb-2024 09:07:52.091 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:07:52.091 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:07:52.096 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-32797"] 14-Feb-2024 09:07:52.149 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-32797"] 14-Feb-2024 09:07:52.152 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:07:52.154 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-32797"] 14-Feb-2024 09:07:52.158 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-32797"] 14-Feb-2024 09:07:52.159 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 14-Feb-2024 09:07:52.161 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 14-Feb-2024 09:07:52.162 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:07:52.162 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:07:52.215 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-34271"] 14-Feb-2024 09:07:52.227 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-34271"] 14-Feb-2024 09:07:52.231 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:07:52.236 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-34271"] 14-Feb-2024 09:07:52.239 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-34271"] 14-Feb-2024 09:07:52.241 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 14-Feb-2024 09:07:52.242 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 14-Feb-2024 09:07:52.242 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 14-Feb-2024 09:07:52.244 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 14-Feb-2024 09:07:52.244 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:07:52.245 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:07:52.254 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-45771"] 14-Feb-2024 09:07:52.269 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-45771"] 14-Feb-2024 09:07:52.270 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:07:52.273 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-45771"] 14-Feb-2024 09:07:52.276 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-45771"] 14-Feb-2024 09:07:52.277 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 14-Feb-2024 09:07:52.279 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 14-Feb-2024 09:07:52.279 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:07:52.279 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:07:52.284 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-36391"] 14-Feb-2024 09:07:52.293 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-36391"] 14-Feb-2024 09:07:52.296 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:07:52.298 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-36391"] 14-Feb-2024 09:07:52.301 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-36391"] 14-Feb-2024 09:07:52.302 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 14-Feb-2024 09:07:52.304 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 14-Feb-2024 09:07:52.305 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:07:52.305 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:07:52.308 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-44637"] 14-Feb-2024 09:07:52.315 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-44637"] 14-Feb-2024 09:07:52.316 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:07:52.318 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-44637"] 14-Feb-2024 09:07:52.320 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-44637"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.944 sec Testcase: testUseContentTypeExpiresConfiguration took 0.076 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.004 sec Testcase: testBug63909 took 0.611 sec Testcase: testConfiguration took 0.119 sec Testcase: testNullContentType took 0.159 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.108 sec Testcase: testUseDefaultConfiguration2 took 0.053 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.071 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.081 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.034 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.025 sec Testcase: testEmptyContent took 0.018 sec