Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.557 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 17 Oct 2023 18:35:35 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:38:35 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 18:35:35 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 17 Oct 2023 18:35:35 GMT Expires: Tue, 17 Oct 2023 18:42:35 GMT Keep-Alive: timeout=3 ETag: W/"971-1697567158976" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:36:36 GMT Content-Length: 0 Date: Tue, 17 Oct 2023 18:35:35 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:36:36 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 18:35:35 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:36:36 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 18:35:35 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:42:36 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 18:35:35 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, 17 Oct 2023 18:35:35 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:35:36 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 18:35:35 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:40:36 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 18:35:35 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:42:36 GMT Content-Length: 0 Date: Tue, 17 Oct 2023 18:35:35 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 17-Oct-2023 18:35:33.933 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 17-Oct-2023 18:35:34.911 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 17-Oct-2023 18:35:34.974 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:35:34.974 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 18:35:35.170 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-34709"] 17-Oct-2023 18:35:35.457 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-34709"] 17-Oct-2023 18:35:35.461 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:35:35.495 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-34709"] 17-Oct-2023 18:35:35.507 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-34709"] 17-Oct-2023 18:35:35.515 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 17-Oct-2023 18:35:35.517 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 17-Oct-2023 18:35:35.520 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:35:35.524 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 18:35:35.568 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-45495"] 17-Oct-2023 18:35:35.613 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-45495"] 17-Oct-2023 18:35:35.614 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:35:35.629 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-45495"] 17-Oct-2023 18:35:35.638 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-45495"] 17-Oct-2023 18:35:35.643 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 17-Oct-2023 18:35:35.644 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 17-Oct-2023 18:35:35.646 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 17-Oct-2023 18:35:35.673 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 17-Oct-2023 18:35:35.674 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:35:35.674 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 18:35:35.796 INFO [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 17-Oct-2023 18:35:35.934 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-43565"] 17-Oct-2023 18:35:35.947 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-43565"] 17-Oct-2023 18:35:35.948 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:35:35.959 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-43565"] 17-Oct-2023 18:35:35.974 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-43565"] 17-Oct-2023 18:35:35.977 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 17-Oct-2023 18:35:35.979 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 17-Oct-2023 18:35:35.979 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:35:35.979 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 18:35:35.986 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-33951"] 17-Oct-2023 18:35:35.990 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-33951"] 17-Oct-2023 18:35:35.990 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:35:35.992 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-33951"] 17-Oct-2023 18:35:35.996 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-33951"] 17-Oct-2023 18:35:35.999 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 17-Oct-2023 18:35:36.001 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 17-Oct-2023 18:35:36.001 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:35:36.002 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 18:35:36.007 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-39903"] 17-Oct-2023 18:35:36.018 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-39903"] 17-Oct-2023 18:35:36.018 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:35:36.022 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-39903"] 17-Oct-2023 18:35:36.025 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-39903"] 17-Oct-2023 18:35:36.027 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 17-Oct-2023 18:35:36.028 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 17-Oct-2023 18:35:36.028 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 17-Oct-2023 18:35:36.029 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 17-Oct-2023 18:35:36.030 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:35:36.030 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 18:35:36.035 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-33721"] 17-Oct-2023 18:35:36.041 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-33721"] 17-Oct-2023 18:35:36.041 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:35:36.043 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-33721"] 17-Oct-2023 18:35:36.045 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-33721"] 17-Oct-2023 18:35:36.048 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 17-Oct-2023 18:35:36.049 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 17-Oct-2023 18:35:36.049 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:35:36.049 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 18:35:36.055 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-37375"] 17-Oct-2023 18:35:36.066 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-37375"] 17-Oct-2023 18:35:36.068 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:35:36.070 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-37375"] 17-Oct-2023 18:35:36.072 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-37375"] 17-Oct-2023 18:35:36.077 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 17-Oct-2023 18:35:36.078 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 17-Oct-2023 18:35:36.079 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:35:36.079 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 18:35:36.087 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-43713"] 17-Oct-2023 18:35:36.100 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-43713"] 17-Oct-2023 18:35:36.102 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:35:36.104 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-43713"] 17-Oct-2023 18:35:36.107 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-43713"] 17-Oct-2023 18:35:36.109 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 17-Oct-2023 18:35:36.110 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 17-Oct-2023 18:35:36.111 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:35:36.111 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 18:35:36.118 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-41063"] 17-Oct-2023 18:35:36.122 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-41063"] 17-Oct-2023 18:35:36.124 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:35:36.126 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-41063"] 17-Oct-2023 18:35:36.131 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-41063"] 17-Oct-2023 18:35:36.134 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 17-Oct-2023 18:35:36.135 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 17-Oct-2023 18:35:36.136 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 17-Oct-2023 18:35:36.137 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 17-Oct-2023 18:35:36.138 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:35:36.138 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 18:35:36.147 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-42883"] 17-Oct-2023 18:35:36.151 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-42883"] 17-Oct-2023 18:35:36.154 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:35:36.156 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-42883"] 17-Oct-2023 18:35:36.157 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-42883"] 17-Oct-2023 18:35:36.159 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 17-Oct-2023 18:35:36.160 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 17-Oct-2023 18:35:36.161 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:35:36.161 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 18:35:36.171 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-42613"] 17-Oct-2023 18:35:36.182 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-42613"] 17-Oct-2023 18:35:36.183 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:35:36.185 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-42613"] 17-Oct-2023 18:35:36.188 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-42613"] 17-Oct-2023 18:35:36.190 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 17-Oct-2023 18:35:36.192 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 17-Oct-2023 18:35:36.192 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:35:36.193 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 18:35:36.196 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-38823"] 17-Oct-2023 18:35:36.201 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-38823"] 17-Oct-2023 18:35:36.203 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:35:36.206 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-38823"] 17-Oct-2023 18:35:36.208 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-38823"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.823 sec Testcase: testUseContentTypeExpiresConfiguration took 0.127 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.332 sec Testcase: testConfiguration took 0.023 sec Testcase: testNullContentType took 0.028 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.019 sec Testcase: testUseDefaultConfiguration2 took 0.03 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.032 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.025 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.024 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.031 sec Testcase: testEmptyContent took 0.02 sec