Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.089 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Thu, 02 May 2024 13:19:13 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Thu, 02 May 2024 13:22:13 GMT Content-Length: 11 Date: Thu, 02 May 2024 13:19:13 GMT Content-Type: text/xml;charset=utf-8 Date: Thu, 02 May 2024 13:19:13 GMT Expires: Thu, 02 May 2024 13:26:13 GMT Keep-Alive: timeout=3 ETag: W/"971-1714654351506" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 02 May 2024 13:20:14 GMT Content-Length: 0 Date: Thu, 02 May 2024 13:19:13 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 02 May 2024 13:20:14 GMT Content-Length: 11 Date: Thu, 02 May 2024 13:19:13 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Thu, 02 May 2024 13:20:14 GMT Content-Length: 11 Date: Thu, 02 May 2024 13:19:13 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 02 May 2024 13:26:14 GMT Content-Length: 11 Date: Thu, 02 May 2024 13:19:13 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: Thu, 02 May 2024 13:19:13 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Thu, 02 May 2024 13:19:14 GMT Content-Length: 11 Date: Thu, 02 May 2024 13:19:13 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Thu, 02 May 2024 13:24:14 GMT Content-Length: 11 Date: Thu, 02 May 2024 13:19:13 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 02 May 2024 13:26:14 GMT Content-Length: 0 Date: Thu, 02 May 2024 13:19:13 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 02-May-2024 13:19:11.704 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 02-May-2024 13:19:12.830 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 02-May-2024 13:19:12.934 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:19:12.934 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:19:13.152 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-39739"] 02-May-2024 13:19:13.376 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-39739"] 02-May-2024 13:19:13.378 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:19:13.418 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-39739"] 02-May-2024 13:19:13.421 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-39739"] 02-May-2024 13:19:13.431 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 02-May-2024 13:19:13.442 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 02-May-2024 13:19:13.477 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:19:13.478 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:19:13.489 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-36695"] 02-May-2024 13:19:13.542 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-36695"] 02-May-2024 13:19:13.543 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:19:13.552 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-36695"] 02-May-2024 13:19:13.553 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-36695"] 02-May-2024 13:19:13.571 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 02-May-2024 13:19:13.573 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 02-May-2024 13:19:13.574 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 02-May-2024 13:19:13.594 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 02-May-2024 13:19:13.622 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:19:13.622 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:19:13.742 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 02-May-2024 13:19:13.890 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43045"] 02-May-2024 13:19:13.909 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43045"] 02-May-2024 13:19:13.912 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:19:13.918 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43045"] 02-May-2024 13:19:13.919 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43045"] 02-May-2024 13:19:13.931 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 02-May-2024 13:19:13.932 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 02-May-2024 13:19:13.998 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:19:13.998 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:19:14.012 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40475"] 02-May-2024 13:19:14.018 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40475"] 02-May-2024 13:19:14.019 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:19:14.022 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40475"] 02-May-2024 13:19:14.023 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40475"] 02-May-2024 13:19:14.026 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 02-May-2024 13:19:14.028 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 02-May-2024 13:19:14.085 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:19:14.085 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:19:14.090 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-41355"] 02-May-2024 13:19:14.097 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-41355"] 02-May-2024 13:19:14.100 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:19:14.103 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-41355"] 02-May-2024 13:19:14.104 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-41355"] 02-May-2024 13:19:14.109 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 02-May-2024 13:19:14.110 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 02-May-2024 13:19:14.111 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 02-May-2024 13:19:14.113 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 02-May-2024 13:19:14.123 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:19:14.123 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:19:14.130 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-39527"] 02-May-2024 13:19:14.139 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-39527"] 02-May-2024 13:19:14.140 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:19:14.146 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-39527"] 02-May-2024 13:19:14.153 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-39527"] 02-May-2024 13:19:14.156 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 02-May-2024 13:19:14.158 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 02-May-2024 13:19:14.186 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:19:14.187 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:19:14.192 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44397"] 02-May-2024 13:19:14.207 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44397"] 02-May-2024 13:19:14.208 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:19:14.211 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44397"] 02-May-2024 13:19:14.212 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44397"] 02-May-2024 13:19:14.215 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 02-May-2024 13:19:14.217 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 02-May-2024 13:19:14.230 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:19:14.230 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:19:14.235 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38787"] 02-May-2024 13:19:14.241 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38787"] 02-May-2024 13:19:14.242 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:19:14.249 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38787"] 02-May-2024 13:19:14.252 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38787"] 02-May-2024 13:19:14.259 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 02-May-2024 13:19:14.261 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 02-May-2024 13:19:14.267 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:19:14.267 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:19:14.272 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-45779"] 02-May-2024 13:19:14.282 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-45779"] 02-May-2024 13:19:14.285 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:19:14.287 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-45779"] 02-May-2024 13:19:14.288 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-45779"] 02-May-2024 13:19:14.292 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 02-May-2024 13:19:14.295 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 02-May-2024 13:19:14.296 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 02-May-2024 13:19:14.299 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 02-May-2024 13:19:14.312 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:19:14.313 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:19:14.318 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-37687"] 02-May-2024 13:19:14.325 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-37687"] 02-May-2024 13:19:14.327 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:19:14.333 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-37687"] 02-May-2024 13:19:14.334 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-37687"] 02-May-2024 13:19:14.336 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 02-May-2024 13:19:14.338 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 02-May-2024 13:19:14.347 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:19:14.347 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:19:14.352 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-42243"] 02-May-2024 13:19:14.360 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-42243"] 02-May-2024 13:19:14.364 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:19:14.368 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-42243"] 02-May-2024 13:19:14.369 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-42243"] 02-May-2024 13:19:14.373 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 02-May-2024 13:19:14.383 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 02-May-2024 13:19:14.394 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:19:14.394 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:19:14.406 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-33863"] 02-May-2024 13:19:14.418 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-33863"] 02-May-2024 13:19:14.421 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:19:14.424 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-33863"] 02-May-2024 13:19:14.425 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-33863"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 2 sec Testcase: testUseContentTypeExpiresConfiguration took 0.141 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.357 sec Testcase: testConfiguration took 0.095 sec Testcase: testNullContentType took 0.083 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.045 sec Testcase: testUseDefaultConfiguration2 took 0.058 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.043 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.033 sec Testcase: testIntsToCommaDelimitedString took 0.003 sec Testcase: testSkipBecauseExpiresIsDefined took 0.041 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.036 sec Testcase: testEmptyContent took 0.056 sec