Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.661 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Mon, 23 Oct 2023 13:21:51 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Mon, 23 Oct 2023 13:24:51 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 13:21:51 GMT Content-Type: text/xml;charset=utf-8 Date: Mon, 23 Oct 2023 13:21:51 GMT Expires: Mon, 23 Oct 2023 13:28:52 GMT Keep-Alive: timeout=3 ETag: W/"971-1698066739040" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=59 Connection: keep-alive Expires: Mon, 23 Oct 2023 13:22:52 GMT Content-Length: 0 Date: Mon, 23 Oct 2023 13:21:51 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 23 Oct 2023 13:22:52 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 13:21:51 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Mon, 23 Oct 2023 13:22:52 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 13:21:51 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=419 Connection: keep-alive Expires: Mon, 23 Oct 2023 13:28:52 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 13:21:51 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, 23 Oct 2023 13:21:51 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Mon, 23 Oct 2023 13:21:52 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 13:21:51 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Mon, 23 Oct 2023 13:26:52 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 13:21:51 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 23 Oct 2023 13:28:52 GMT Content-Length: 0 Date: Mon, 23 Oct 2023 13:21:51 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 23-Oct-2023 13:21:50.014 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 23-Oct-2023 13:21:50.868 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 23-Oct-2023 13:21:50.908 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 13:21:50.909 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 13:21:51.130 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-43763"] 23-Oct-2023 13:21:51.421 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-43763"] 23-Oct-2023 13:21:51.423 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 13:21:51.443 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-43763"] 23-Oct-2023 13:21:51.457 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-43763"] 23-Oct-2023 13:21:51.465 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 23-Oct-2023 13:21:51.468 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 23-Oct-2023 13:21:51.471 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 13:21:51.471 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 13:21:51.542 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-43313"] 23-Oct-2023 13:21:51.588 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-43313"] 23-Oct-2023 13:21:51.591 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 13:21:51.597 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-43313"] 23-Oct-2023 13:21:51.616 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-43313"] 23-Oct-2023 13:21:51.619 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 23-Oct-2023 13:21:51.620 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 23-Oct-2023 13:21:51.621 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 23-Oct-2023 13:21:51.652 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 23-Oct-2023 13:21:51.653 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 13:21:51.653 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 13:21:51.698 INFO [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 23-Oct-2023 13:21:51.901 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-46619"] 23-Oct-2023 13:21:52.017 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-46619"] 23-Oct-2023 13:21:52.019 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 13:21:52.027 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-46619"] 23-Oct-2023 13:21:52.036 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-46619"] 23-Oct-2023 13:21:52.040 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 23-Oct-2023 13:21:52.041 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 23-Oct-2023 13:21:52.042 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 13:21:52.042 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 13:21:52.051 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-37015"] 23-Oct-2023 13:21:52.061 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-37015"] 23-Oct-2023 13:21:52.070 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 13:21:52.076 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-37015"] 23-Oct-2023 13:21:52.081 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-37015"] 23-Oct-2023 13:21:52.084 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 23-Oct-2023 13:21:52.086 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 23-Oct-2023 13:21:52.086 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 13:21:52.086 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 13:21:52.138 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-33613"] 23-Oct-2023 13:21:52.155 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-33613"] 23-Oct-2023 13:21:52.158 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 13:21:52.161 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-33613"] 23-Oct-2023 13:21:52.170 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-33613"] 23-Oct-2023 13:21:52.172 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 23-Oct-2023 13:21:52.173 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 23-Oct-2023 13:21:52.173 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 23-Oct-2023 13:21:52.174 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 23-Oct-2023 13:21:52.175 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 13:21:52.175 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 13:21:52.182 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-45345"] 23-Oct-2023 13:21:52.192 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-45345"] 23-Oct-2023 13:21:52.193 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 13:21:52.198 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-45345"] 23-Oct-2023 13:21:52.204 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-45345"] 23-Oct-2023 13:21:52.206 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 23-Oct-2023 13:21:52.208 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 23-Oct-2023 13:21:52.209 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 13:21:52.209 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 13:21:52.214 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-33551"] 23-Oct-2023 13:21:52.219 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-33551"] 23-Oct-2023 13:21:52.222 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 13:21:52.224 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-33551"] 23-Oct-2023 13:21:52.226 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-33551"] 23-Oct-2023 13:21:52.232 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 23-Oct-2023 13:21:52.233 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 23-Oct-2023 13:21:52.234 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 13:21:52.234 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 13:21:52.240 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-36919"] 23-Oct-2023 13:21:52.246 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-36919"] 23-Oct-2023 13:21:52.248 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 13:21:52.251 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-36919"] 23-Oct-2023 13:21:52.255 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-36919"] 23-Oct-2023 13:21:52.259 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 23-Oct-2023 13:21:52.261 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 23-Oct-2023 13:21:52.262 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 13:21:52.262 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 13:21:52.267 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-33907"] 23-Oct-2023 13:21:52.278 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-33907"] 23-Oct-2023 13:21:52.279 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 13:21:52.285 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-33907"] 23-Oct-2023 13:21:52.288 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-33907"] 23-Oct-2023 13:21:52.291 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 23-Oct-2023 13:21:52.291 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 23-Oct-2023 13:21:52.292 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 23-Oct-2023 13:21:52.293 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 23-Oct-2023 13:21:52.294 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 13:21:52.294 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 13:21:52.304 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-35109"] 23-Oct-2023 13:21:52.308 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-35109"] 23-Oct-2023 13:21:52.309 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 13:21:52.314 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-35109"] 23-Oct-2023 13:21:52.316 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-35109"] 23-Oct-2023 13:21:52.318 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 23-Oct-2023 13:21:52.319 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 23-Oct-2023 13:21:52.319 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 13:21:52.319 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 13:21:52.323 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-44189"] 23-Oct-2023 13:21:52.334 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-44189"] 23-Oct-2023 13:21:52.334 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 13:21:52.337 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-44189"] 23-Oct-2023 13:21:52.340 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-44189"] 23-Oct-2023 13:21:52.344 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 23-Oct-2023 13:21:52.345 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 23-Oct-2023 13:21:52.346 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 13:21:52.346 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 13:21:52.350 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-41587"] 23-Oct-2023 13:21:52.359 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-41587"] 23-Oct-2023 13:21:52.362 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 13:21:52.365 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-41587"] 23-Oct-2023 13:21:52.372 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-41587"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.68 sec Testcase: testUseContentTypeExpiresConfiguration took 0.153 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.417 sec Testcase: testConfiguration took 0.046 sec Testcase: testNullContentType took 0.088 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.033 sec Testcase: testUseDefaultConfiguration2 took 0.025 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.027 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.031 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.025 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.026 sec Testcase: testEmptyContent took 0.03 sec