Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.309 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Wed, 03 Jan 2024 18:07:43 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Wed, 03 Jan 2024 18:10:43 GMT Content-Length: 11 Date: Wed, 03 Jan 2024 18:07:43 GMT Content-Type: text/xml;charset=utf-8 Date: Wed, 03 Jan 2024 18:07:43 GMT Expires: Wed, 03 Jan 2024 18:14:43 GMT Keep-Alive: timeout=3 ETag: W/"971-1704304464507" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 03 Jan 2024 18:08:43 GMT Content-Length: 0 Date: Wed, 03 Jan 2024 18:07:43 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 03 Jan 2024 18:08:44 GMT Content-Length: 11 Date: Wed, 03 Jan 2024 18:07:43 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Wed, 03 Jan 2024 18:08:44 GMT Content-Length: 11 Date: Wed, 03 Jan 2024 18:07:43 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 03 Jan 2024 18:14:44 GMT Content-Length: 11 Date: Wed, 03 Jan 2024 18:07:43 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, 03 Jan 2024 18:07:43 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Wed, 03 Jan 2024 18:07:44 GMT Content-Length: 11 Date: Wed, 03 Jan 2024 18:07:43 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Wed, 03 Jan 2024 18:12:44 GMT Content-Length: 11 Date: Wed, 03 Jan 2024 18:07:43 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 03 Jan 2024 18:14:44 GMT Content-Length: 0 Date: Wed, 03 Jan 2024 18:07:43 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 03-Jan-2024 18:07:41.524 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 03-Jan-2024 18:07:42.493 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 03-Jan-2024 18:07:42.577 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Jan-2024 18:07:42.577 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.18-dev] 03-Jan-2024 18:07:42.929 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-41807"] 03-Jan-2024 18:07:43.311 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-41807"] 03-Jan-2024 18:07:43.314 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Jan-2024 18:07:43.332 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-41807"] 03-Jan-2024 18:07:43.351 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-41807"] 03-Jan-2024 18:07:43.375 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 03-Jan-2024 18:07:43.377 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 03-Jan-2024 18:07:43.385 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Jan-2024 18:07:43.385 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.18-dev] 03-Jan-2024 18:07:43.406 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-39127"] 03-Jan-2024 18:07:43.503 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-39127"] 03-Jan-2024 18:07:43.519 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Jan-2024 18:07:43.532 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-39127"] 03-Jan-2024 18:07:43.541 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-39127"] 03-Jan-2024 18:07:43.545 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 03-Jan-2024 18:07:43.547 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 03-Jan-2024 18:07:43.548 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 03-Jan-2024 18:07:43.568 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 03-Jan-2024 18:07:43.569 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Jan-2024 18:07:43.578 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.18-dev] 03-Jan-2024 18:07:43.676 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 03-Jan-2024 18:07:43.869 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-45161"] 03-Jan-2024 18:07:43.884 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-45161"] 03-Jan-2024 18:07:43.888 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Jan-2024 18:07:43.899 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-45161"] 03-Jan-2024 18:07:43.910 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-45161"] 03-Jan-2024 18:07:43.915 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 03-Jan-2024 18:07:43.920 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 03-Jan-2024 18:07:43.922 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Jan-2024 18:07:43.923 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.18-dev] 03-Jan-2024 18:07:43.929 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-33705"] 03-Jan-2024 18:07:43.948 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-33705"] 03-Jan-2024 18:07:43.948 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Jan-2024 18:07:43.951 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-33705"] 03-Jan-2024 18:07:43.953 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-33705"] 03-Jan-2024 18:07:43.954 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 03-Jan-2024 18:07:43.956 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 03-Jan-2024 18:07:43.957 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Jan-2024 18:07:43.957 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.18-dev] 03-Jan-2024 18:07:43.962 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-39199"] 03-Jan-2024 18:07:43.977 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-39199"] 03-Jan-2024 18:07:43.978 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Jan-2024 18:07:43.981 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-39199"] 03-Jan-2024 18:07:43.984 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-39199"] 03-Jan-2024 18:07:43.985 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 03-Jan-2024 18:07:43.986 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 03-Jan-2024 18:07:43.987 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 03-Jan-2024 18:07:43.988 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 03-Jan-2024 18:07:43.989 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Jan-2024 18:07:43.989 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.18-dev] 03-Jan-2024 18:07:43.994 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-34875"] 03-Jan-2024 18:07:44.003 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-34875"] 03-Jan-2024 18:07:44.005 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Jan-2024 18:07:44.007 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-34875"] 03-Jan-2024 18:07:44.009 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-34875"] 03-Jan-2024 18:07:44.013 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 03-Jan-2024 18:07:44.014 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 03-Jan-2024 18:07:44.015 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Jan-2024 18:07:44.015 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.18-dev] 03-Jan-2024 18:07:44.029 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-39141"] 03-Jan-2024 18:07:44.057 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-39141"] 03-Jan-2024 18:07:44.058 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Jan-2024 18:07:44.061 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-39141"] 03-Jan-2024 18:07:44.067 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-39141"] 03-Jan-2024 18:07:44.068 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 03-Jan-2024 18:07:44.072 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 03-Jan-2024 18:07:44.073 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Jan-2024 18:07:44.073 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.18-dev] 03-Jan-2024 18:07:44.097 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-40309"] 03-Jan-2024 18:07:44.171 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-40309"] 03-Jan-2024 18:07:44.177 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Jan-2024 18:07:44.179 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-40309"] 03-Jan-2024 18:07:44.185 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-40309"] 03-Jan-2024 18:07:44.187 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 03-Jan-2024 18:07:44.188 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 03-Jan-2024 18:07:44.189 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Jan-2024 18:07:44.189 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.18-dev] 03-Jan-2024 18:07:44.204 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-38911"] 03-Jan-2024 18:07:44.217 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-38911"] 03-Jan-2024 18:07:44.220 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Jan-2024 18:07:44.222 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-38911"] 03-Jan-2024 18:07:44.225 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-38911"] 03-Jan-2024 18:07:44.227 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 03-Jan-2024 18:07:44.228 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 03-Jan-2024 18:07:44.229 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 03-Jan-2024 18:07:44.230 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 03-Jan-2024 18:07:44.231 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Jan-2024 18:07:44.231 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.18-dev] 03-Jan-2024 18:07:44.237 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-33611"] 03-Jan-2024 18:07:44.263 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-33611"] 03-Jan-2024 18:07:44.267 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Jan-2024 18:07:44.269 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-33611"] 03-Jan-2024 18:07:44.275 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-33611"] 03-Jan-2024 18:07:44.276 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 03-Jan-2024 18:07:44.277 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 03-Jan-2024 18:07:44.278 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Jan-2024 18:07:44.279 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.18-dev] 03-Jan-2024 18:07:44.287 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-41665"] 03-Jan-2024 18:07:44.308 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-41665"] 03-Jan-2024 18:07:44.310 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Jan-2024 18:07:44.312 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-41665"] 03-Jan-2024 18:07:44.315 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-41665"] 03-Jan-2024 18:07:44.317 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 03-Jan-2024 18:07:44.319 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 03-Jan-2024 18:07:44.320 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Jan-2024 18:07:44.320 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.18-dev] 03-Jan-2024 18:07:44.326 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-36853"] 03-Jan-2024 18:07:44.343 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-36853"] 03-Jan-2024 18:07:44.346 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Jan-2024 18:07:44.347 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-36853"] 03-Jan-2024 18:07:44.350 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-36853"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 2.236 sec Testcase: testUseContentTypeExpiresConfiguration took 0.17 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.368 sec Testcase: testConfiguration took 0.039 sec Testcase: testNullContentType took 0.031 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.024 sec Testcase: testUseDefaultConfiguration2 took 0.057 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.118 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.04 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.047 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.04 sec Testcase: testEmptyContent took 0.038 sec