Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.167 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Mon, 30 Oct 2023 18:14:28 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Mon, 30 Oct 2023 18:17:28 GMT Content-Length: 11 Date: Mon, 30 Oct 2023 18:14:28 GMT Content-Type: text/xml;charset=utf-8 Date: Mon, 30 Oct 2023 18:14:28 GMT Expires: Mon, 30 Oct 2023 18:21:28 GMT Keep-Alive: timeout=3 ETag: W/"971-1698689076077" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 30 Oct 2023 18:15:29 GMT Content-Length: 0 Date: Mon, 30 Oct 2023 18:14:28 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 30 Oct 2023 18:15:29 GMT Content-Length: 11 Date: Mon, 30 Oct 2023 18:14:28 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Mon, 30 Oct 2023 18:15:29 GMT Content-Length: 11 Date: Mon, 30 Oct 2023 18:14:28 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 30 Oct 2023 18:21:29 GMT Content-Length: 11 Date: Mon, 30 Oct 2023 18:14:28 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: Mon, 30 Oct 2023 18:14:28 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Mon, 30 Oct 2023 18:14:29 GMT Content-Length: 11 Date: Mon, 30 Oct 2023 18:14:28 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Mon, 30 Oct 2023 18:19:29 GMT Content-Length: 11 Date: Mon, 30 Oct 2023 18:14:28 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 30 Oct 2023 18:21:29 GMT Content-Length: 0 Date: Mon, 30 Oct 2023 18:14:28 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 30-Oct-2023 18:14:27.694 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 30-Oct-2023 18:14:28.225 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 30-Oct-2023 18:14:28.298 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 18:14:28.298 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 30-Oct-2023 18:14:28.478 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-43777"] 30-Oct-2023 18:14:28.621 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-43777"] 30-Oct-2023 18:14:28.623 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 18:14:28.654 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-43777"] 30-Oct-2023 18:14:28.665 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-43777"] 30-Oct-2023 18:14:28.673 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 30-Oct-2023 18:14:28.683 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 30-Oct-2023 18:14:28.683 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 18:14:28.684 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 30-Oct-2023 18:14:28.700 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-38743"] 30-Oct-2023 18:14:28.728 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-38743"] 30-Oct-2023 18:14:28.729 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 18:14:28.733 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-38743"] 30-Oct-2023 18:14:28.740 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-38743"] 30-Oct-2023 18:14:28.742 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 30-Oct-2023 18:14:28.743 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 30-Oct-2023 18:14:28.744 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 30-Oct-2023 18:14:28.752 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 30-Oct-2023 18:14:28.755 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 18:14:28.755 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 30-Oct-2023 18:14:28.796 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 30-Oct-2023 18:14:28.896 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-40471"] 30-Oct-2023 18:14:28.951 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-40471"] 30-Oct-2023 18:14:28.956 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 18:14:28.963 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-40471"] 30-Oct-2023 18:14:28.971 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-40471"] 30-Oct-2023 18:14:28.973 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 30-Oct-2023 18:14:28.975 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 30-Oct-2023 18:14:28.976 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 18:14:28.976 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 30-Oct-2023 18:14:29.005 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-33217"] 30-Oct-2023 18:14:29.102 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-33217"] 30-Oct-2023 18:14:29.102 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 18:14:29.105 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-33217"] 30-Oct-2023 18:14:29.108 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-33217"] 30-Oct-2023 18:14:29.114 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 30-Oct-2023 18:14:29.116 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 30-Oct-2023 18:14:29.117 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 18:14:29.118 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 30-Oct-2023 18:14:29.127 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-33447"] 30-Oct-2023 18:14:29.136 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-33447"] 30-Oct-2023 18:14:29.139 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 18:14:29.141 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-33447"] 30-Oct-2023 18:14:29.144 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-33447"] 30-Oct-2023 18:14:29.145 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 30-Oct-2023 18:14:29.146 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 30-Oct-2023 18:14:29.146 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 30-Oct-2023 18:14:29.148 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 30-Oct-2023 18:14:29.149 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 18:14:29.149 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 30-Oct-2023 18:14:29.154 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-41877"] 30-Oct-2023 18:14:29.173 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-41877"] 30-Oct-2023 18:14:29.176 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 18:14:29.178 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-41877"] 30-Oct-2023 18:14:29.182 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-41877"] 30-Oct-2023 18:14:29.183 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 30-Oct-2023 18:14:29.185 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 30-Oct-2023 18:14:29.186 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 18:14:29.186 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 30-Oct-2023 18:14:29.191 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-43135"] 30-Oct-2023 18:14:29.206 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-43135"] 30-Oct-2023 18:14:29.208 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 18:14:29.211 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-43135"] 30-Oct-2023 18:14:29.214 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-43135"] 30-Oct-2023 18:14:29.215 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 30-Oct-2023 18:14:29.218 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 30-Oct-2023 18:14:29.218 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 18:14:29.219 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 30-Oct-2023 18:14:29.233 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-37473"] 30-Oct-2023 18:14:29.257 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-37473"] 30-Oct-2023 18:14:29.259 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 18:14:29.261 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-37473"] 30-Oct-2023 18:14:29.263 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-37473"] 30-Oct-2023 18:14:29.265 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 30-Oct-2023 18:14:29.268 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 30-Oct-2023 18:14:29.268 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 18:14:29.268 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 30-Oct-2023 18:14:29.273 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-35337"] 30-Oct-2023 18:14:29.280 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-35337"] 30-Oct-2023 18:14:29.281 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 18:14:29.282 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-35337"] 30-Oct-2023 18:14:29.286 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-35337"] 30-Oct-2023 18:14:29.288 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 30-Oct-2023 18:14:29.289 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 30-Oct-2023 18:14:29.289 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 30-Oct-2023 18:14:29.291 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 30-Oct-2023 18:14:29.292 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 18:14:29.292 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 30-Oct-2023 18:14:29.296 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-45717"] 30-Oct-2023 18:14:29.302 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-45717"] 30-Oct-2023 18:14:29.307 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 18:14:29.308 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-45717"] 30-Oct-2023 18:14:29.310 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-45717"] 30-Oct-2023 18:14:29.312 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 30-Oct-2023 18:14:29.313 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 30-Oct-2023 18:14:29.314 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 18:14:29.314 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 30-Oct-2023 18:14:29.325 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-39003"] 30-Oct-2023 18:14:29.345 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-39003"] 30-Oct-2023 18:14:29.348 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 18:14:29.349 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-39003"] 30-Oct-2023 18:14:29.352 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-39003"] 30-Oct-2023 18:14:29.353 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 30-Oct-2023 18:14:29.355 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 30-Oct-2023 18:14:29.355 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 18:14:29.373 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 30-Oct-2023 18:14:29.384 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-34007"] 30-Oct-2023 18:14:29.402 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-34007"] 30-Oct-2023 18:14:29.402 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 18:14:29.404 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-34007"] 30-Oct-2023 18:14:29.411 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-34007"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.333 sec Testcase: testUseContentTypeExpiresConfiguration took 0.07 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.229 sec Testcase: testConfiguration took 0.139 sec Testcase: testNullContentType took 0.032 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.037 sec Testcase: testUseDefaultConfiguration2 took 0.032 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.049 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.022 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.022 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.042 sec Testcase: testEmptyContent took 0.069 sec