Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.812 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Sun, 04 Feb 2024 16:21:00 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Sun, 04 Feb 2024 16:24:00 GMT Content-Length: 11 Date: Sun, 04 Feb 2024 16:21:00 GMT Content-Type: text/xml;charset=utf-8 Date: Sun, 04 Feb 2024 16:21:00 GMT Expires: Sun, 04 Feb 2024 16:28:00 GMT Keep-Alive: timeout=3 ETag: W/"971-1707062880713" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Sun, 04 Feb 2024 16:22:01 GMT Content-Length: 0 Date: Sun, 04 Feb 2024 16:21:00 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Sun, 04 Feb 2024 16:22:01 GMT Content-Length: 11 Date: Sun, 04 Feb 2024 16:21:00 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Sun, 04 Feb 2024 16:22:01 GMT Content-Length: 11 Date: Sun, 04 Feb 2024 16:21:00 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Sun, 04 Feb 2024 16:28:01 GMT Content-Length: 11 Date: Sun, 04 Feb 2024 16:21:00 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: Sun, 04 Feb 2024 16:21:01 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Sun, 04 Feb 2024 16:21:01 GMT Content-Length: 11 Date: Sun, 04 Feb 2024 16:21:01 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Sun, 04 Feb 2024 16:26:01 GMT Content-Length: 11 Date: Sun, 04 Feb 2024 16:21:01 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Sun, 04 Feb 2024 16:28:01 GMT Content-Length: 0 Date: Sun, 04 Feb 2024 16:21:01 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 04-Feb-2024 16:20:58.298 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 04-Feb-2024 16:20:59.518 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 04-Feb-2024 16:20:59.600 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 16:20:59.600 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M17-dev] 04-Feb-2024 16:20:59.850 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-44895"] 04-Feb-2024 16:21:00.204 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-44895"] 04-Feb-2024 16:21:00.206 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 16:21:00.223 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-44895"] 04-Feb-2024 16:21:00.239 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-44895"] 04-Feb-2024 16:21:00.250 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 04-Feb-2024 16:21:00.260 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 04-Feb-2024 16:21:00.261 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 16:21:00.261 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M17-dev] 04-Feb-2024 16:21:00.289 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-36029"] 04-Feb-2024 16:21:00.335 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-36029"] 04-Feb-2024 16:21:00.337 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 16:21:00.342 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-36029"] 04-Feb-2024 16:21:00.358 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-36029"] 04-Feb-2024 16:21:00.360 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 04-Feb-2024 16:21:00.362 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 04-Feb-2024 16:21:00.362 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 04-Feb-2024 16:21:00.382 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 04-Feb-2024 16:21:00.398 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 16:21:00.398 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M17-dev] 04-Feb-2024 16:21:00.526 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 04-Feb-2024 16:21:00.818 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-45327"] 04-Feb-2024 16:21:00.866 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-45327"] 04-Feb-2024 16:21:00.869 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 16:21:00.875 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-45327"] 04-Feb-2024 16:21:00.879 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-45327"] 04-Feb-2024 16:21:00.881 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 04-Feb-2024 16:21:00.890 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 04-Feb-2024 16:21:00.902 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 16:21:00.902 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M17-dev] 04-Feb-2024 16:21:00.909 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-45043"] 04-Feb-2024 16:21:00.934 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-45043"] 04-Feb-2024 16:21:00.934 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 16:21:00.936 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-45043"] 04-Feb-2024 16:21:00.939 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-45043"] 04-Feb-2024 16:21:00.940 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 04-Feb-2024 16:21:00.942 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 04-Feb-2024 16:21:00.942 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 16:21:00.943 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M17-dev] 04-Feb-2024 16:21:00.973 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-34303"] 04-Feb-2024 16:21:01.008 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-34303"] 04-Feb-2024 16:21:01.014 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 16:21:01.022 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-34303"] 04-Feb-2024 16:21:01.026 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-34303"] 04-Feb-2024 16:21:01.028 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 04-Feb-2024 16:21:01.029 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 04-Feb-2024 16:21:01.030 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 04-Feb-2024 16:21:01.031 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 04-Feb-2024 16:21:01.032 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 16:21:01.032 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M17-dev] 04-Feb-2024 16:21:01.047 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-41439"] 04-Feb-2024 16:21:01.101 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-41439"] 04-Feb-2024 16:21:01.104 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 16:21:01.107 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-41439"] 04-Feb-2024 16:21:01.115 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-41439"] 04-Feb-2024 16:21:01.117 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 04-Feb-2024 16:21:01.118 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 04-Feb-2024 16:21:01.119 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 16:21:01.119 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M17-dev] 04-Feb-2024 16:21:01.130 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-33277"] 04-Feb-2024 16:21:01.221 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-33277"] 04-Feb-2024 16:21:01.222 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 16:21:01.224 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-33277"] 04-Feb-2024 16:21:01.228 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-33277"] 04-Feb-2024 16:21:01.229 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 04-Feb-2024 16:21:01.231 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 04-Feb-2024 16:21:01.232 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 16:21:01.232 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M17-dev] 04-Feb-2024 16:21:01.245 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-35205"] 04-Feb-2024 16:21:01.251 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-35205"] 04-Feb-2024 16:21:01.254 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 16:21:01.256 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-35205"] 04-Feb-2024 16:21:01.258 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-35205"] 04-Feb-2024 16:21:01.259 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 04-Feb-2024 16:21:01.261 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 04-Feb-2024 16:21:01.261 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 16:21:01.262 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M17-dev] 04-Feb-2024 16:21:01.275 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-36149"] 04-Feb-2024 16:21:01.326 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-36149"] 04-Feb-2024 16:21:01.328 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 16:21:01.332 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-36149"] 04-Feb-2024 16:21:01.342 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-36149"] 04-Feb-2024 16:21:01.344 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 04-Feb-2024 16:21:01.345 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 04-Feb-2024 16:21:01.345 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 04-Feb-2024 16:21:01.347 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 04-Feb-2024 16:21:01.347 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 16:21:01.348 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M17-dev] 04-Feb-2024 16:21:01.362 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-41731"] 04-Feb-2024 16:21:01.449 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-41731"] 04-Feb-2024 16:21:01.453 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 16:21:01.456 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-41731"] 04-Feb-2024 16:21:01.462 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-41731"] 04-Feb-2024 16:21:01.464 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 04-Feb-2024 16:21:01.469 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 04-Feb-2024 16:21:01.471 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 16:21:01.471 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M17-dev] 04-Feb-2024 16:21:01.502 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-39897"] 04-Feb-2024 16:21:01.581 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-39897"] 04-Feb-2024 16:21:01.583 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 16:21:01.585 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-39897"] 04-Feb-2024 16:21:01.590 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-39897"] 04-Feb-2024 16:21:01.591 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 04-Feb-2024 16:21:01.593 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 04-Feb-2024 16:21:01.594 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 16:21:01.594 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M17-dev] 04-Feb-2024 16:21:01.603 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-36807"] 04-Feb-2024 16:21:01.640 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-36807"] 04-Feb-2024 16:21:01.643 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 16:21:01.645 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-36807"] 04-Feb-2024 16:21:01.647 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-36807"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 2.309 sec Testcase: testUseContentTypeExpiresConfiguration took 0.113 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.518 sec Testcase: testConfiguration took 0.06 sec Testcase: testNullContentType took 0.087 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.087 sec Testcase: testUseDefaultConfiguration2 took 0.113 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.03 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.084 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.118 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.127 sec Testcase: testEmptyContent took 0.057 sec