Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.592 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 09 May 2023 14:42:46 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 09 May 2023 14:45:46 GMT Content-Length: 11 Date: Tue, 09 May 2023 14:42:46 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 09 May 2023 14:42:46 GMT Expires: Tue, 09 May 2023 14:49:46 GMT Keep-Alive: timeout=3 ETag: W/"971-1683642382573" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 09 May 2023 14:43:46 GMT Content-Length: 0 Date: Tue, 09 May 2023 14:42:46 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 09 May 2023 14:43:47 GMT Content-Length: 11 Date: Tue, 09 May 2023 14:42:46 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 09 May 2023 14:43:47 GMT Content-Length: 11 Date: Tue, 09 May 2023 14:42:46 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 09 May 2023 14:49:47 GMT Content-Length: 11 Date: Tue, 09 May 2023 14:42:46 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, 09 May 2023 14:42:46 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 09 May 2023 14:42:47 GMT Content-Length: 11 Date: Tue, 09 May 2023 14:42:46 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 09 May 2023 14:47:47 GMT Content-Length: 11 Date: Tue, 09 May 2023 14:42:46 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 09 May 2023 14:49:47 GMT Content-Length: 0 Date: Tue, 09 May 2023 14:42:46 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 09-May-2023 14:42:45.101 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 09-May-2023 14:42:45.840 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 09-May-2023 14:42:45.869 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 14:42:45.870 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 14:42:46.062 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-34787"] 09-May-2023 14:42:46.291 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-34787"] 09-May-2023 14:42:46.294 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 14:42:46.316 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-34787"] 09-May-2023 14:42:46.327 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-34787"] 09-May-2023 14:42:46.335 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 09-May-2023 14:42:46.337 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 09-May-2023 14:42:46.338 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 14:42:46.338 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 14:42:46.344 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-35177"] 09-May-2023 14:42:46.407 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-35177"] 09-May-2023 14:42:46.410 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 14:42:46.412 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-35177"] 09-May-2023 14:42:46.415 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-35177"] 09-May-2023 14:42:46.419 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 09-May-2023 14:42:46.421 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 09-May-2023 14:42:46.422 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 09-May-2023 14:42:46.441 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 09-May-2023 14:42:46.442 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 14:42:46.442 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 14:42:46.511 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 09-May-2023 14:42:46.775 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-43637"] 09-May-2023 14:42:46.841 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-43637"] 09-May-2023 14:42:46.842 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 14:42:46.850 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-43637"] 09-May-2023 14:42:46.864 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-43637"] 09-May-2023 14:42:46.867 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 09-May-2023 14:42:46.868 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 09-May-2023 14:42:46.869 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 14:42:46.869 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 14:42:46.881 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-37847"] 09-May-2023 14:42:46.890 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-37847"] 09-May-2023 14:42:46.890 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 14:42:46.893 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-37847"] 09-May-2023 14:42:46.895 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-37847"] 09-May-2023 14:42:46.897 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 09-May-2023 14:42:46.899 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 09-May-2023 14:42:46.900 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 14:42:46.900 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 14:42:46.931 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-34985"] 09-May-2023 14:42:46.958 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-34985"] 09-May-2023 14:42:46.961 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 14:42:46.963 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-34985"] 09-May-2023 14:42:46.966 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-34985"] 09-May-2023 14:42:46.969 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 09-May-2023 14:42:46.970 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 09-May-2023 14:42:46.971 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 09-May-2023 14:42:46.973 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 09-May-2023 14:42:46.973 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 14:42:46.974 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 14:42:46.999 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-32779"] 09-May-2023 14:42:47.011 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-32779"] 09-May-2023 14:42:47.013 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 14:42:47.016 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-32779"] 09-May-2023 14:42:47.017 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-32779"] 09-May-2023 14:42:47.019 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 09-May-2023 14:42:47.021 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 09-May-2023 14:42:47.021 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 14:42:47.022 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 14:42:47.027 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-43157"] 09-May-2023 14:42:47.053 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-43157"] 09-May-2023 14:42:47.055 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 14:42:47.062 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-43157"] 09-May-2023 14:42:47.064 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-43157"] 09-May-2023 14:42:47.066 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 09-May-2023 14:42:47.068 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 09-May-2023 14:42:47.072 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 14:42:47.072 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 14:42:47.085 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-42689"] 09-May-2023 14:42:47.099 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-42689"] 09-May-2023 14:42:47.100 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 14:42:47.102 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-42689"] 09-May-2023 14:42:47.105 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-42689"] 09-May-2023 14:42:47.107 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 09-May-2023 14:42:47.109 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 09-May-2023 14:42:47.109 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 14:42:47.110 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 14:42:47.115 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-38203"] 09-May-2023 14:42:47.126 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-38203"] 09-May-2023 14:42:47.127 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 14:42:47.129 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-38203"] 09-May-2023 14:42:47.131 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-38203"] 09-May-2023 14:42:47.134 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 09-May-2023 14:42:47.135 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 09-May-2023 14:42:47.136 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 09-May-2023 14:42:47.137 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 09-May-2023 14:42:47.139 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 14:42:47.139 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 14:42:47.144 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-41355"] 09-May-2023 14:42:47.158 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-41355"] 09-May-2023 14:42:47.162 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 14:42:47.165 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-41355"] 09-May-2023 14:42:47.166 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-41355"] 09-May-2023 14:42:47.168 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 09-May-2023 14:42:47.170 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 09-May-2023 14:42:47.170 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 14:42:47.171 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 14:42:47.175 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-35127"] 09-May-2023 14:42:47.188 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-35127"] 09-May-2023 14:42:47.189 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 14:42:47.191 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-35127"] 09-May-2023 14:42:47.192 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-35127"] 09-May-2023 14:42:47.194 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 09-May-2023 14:42:47.195 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 09-May-2023 14:42:47.196 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 14:42:47.196 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 14:42:47.201 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-38361"] 09-May-2023 14:42:47.210 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-38361"] 09-May-2023 14:42:47.212 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 14:42:47.214 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-38361"] 09-May-2023 14:42:47.217 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-38361"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.606 sec Testcase: testUseContentTypeExpiresConfiguration took 0.085 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.445 sec Testcase: testConfiguration took 0.031 sec Testcase: testNullContentType took 0.072 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.048 sec Testcase: testUseDefaultConfiguration2 took 0.047 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.04 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.026 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.033 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.026 sec Testcase: testEmptyContent took 0.025 sec