Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.991 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Thu, 18 Apr 2024 12:40:18 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Thu, 18 Apr 2024 12:43:18 GMT Content-Length: 11 Date: Thu, 18 Apr 2024 12:40:18 GMT Content-Type: text/xml;charset=utf-8 Date: Thu, 18 Apr 2024 12:40:18 GMT Expires: Thu, 18 Apr 2024 12:47:19 GMT Keep-Alive: timeout=3 ETag: W/"971-1713442376554" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 18 Apr 2024 12:41:19 GMT Content-Length: 0 Date: Thu, 18 Apr 2024 12:40:18 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 18 Apr 2024 12:41:19 GMT Content-Length: 11 Date: Thu, 18 Apr 2024 12:40:18 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Thu, 18 Apr 2024 12:41:19 GMT Content-Length: 11 Date: Thu, 18 Apr 2024 12:40:18 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 18 Apr 2024 12:47:19 GMT Content-Length: 11 Date: Thu, 18 Apr 2024 12:40:18 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, 18 Apr 2024 12:40:18 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Thu, 18 Apr 2024 12:40:19 GMT Content-Length: 11 Date: Thu, 18 Apr 2024 12:40:18 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Thu, 18 Apr 2024 12:45:19 GMT Content-Length: 11 Date: Thu, 18 Apr 2024 12:40:18 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 18 Apr 2024 12:47:19 GMT Content-Length: 0 Date: Thu, 18 Apr 2024 12:40:18 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 18-Apr-2024 12:40:17.348 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 18-Apr-2024 12:40:18.195 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 18-Apr-2024 12:40:18.349 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Apr-2024 12:40:18.349 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.23-dev] 18-Apr-2024 12:40:18.688 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-45617"] 18-Apr-2024 12:40:18.842 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-45617"] 18-Apr-2024 12:40:18.844 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Apr-2024 12:40:18.876 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-45617"] 18-Apr-2024 12:40:18.884 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-45617"] 18-Apr-2024 12:40:18.892 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 18-Apr-2024 12:40:18.901 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 18-Apr-2024 12:40:18.911 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Apr-2024 12:40:18.912 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.23-dev] 18-Apr-2024 12:40:18.919 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-36625"] 18-Apr-2024 12:40:18.936 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-36625"] 18-Apr-2024 12:40:18.936 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Apr-2024 12:40:18.946 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-36625"] 18-Apr-2024 12:40:18.947 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-36625"] 18-Apr-2024 12:40:18.962 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 18-Apr-2024 12:40:18.963 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 18-Apr-2024 12:40:18.964 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 18-Apr-2024 12:40:18.971 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 18-Apr-2024 12:40:18.975 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Apr-2024 12:40:18.975 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.23-dev] 18-Apr-2024 12:40:19.065 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 18-Apr-2024 12:40:19.204 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43985"] 18-Apr-2024 12:40:19.214 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43985"] 18-Apr-2024 12:40:19.217 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Apr-2024 12:40:19.229 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43985"] 18-Apr-2024 12:40:19.229 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43985"] 18-Apr-2024 12:40:19.233 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 18-Apr-2024 12:40:19.234 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 18-Apr-2024 12:40:19.259 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Apr-2024 12:40:19.259 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.23-dev] 18-Apr-2024 12:40:19.263 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-41987"] 18-Apr-2024 12:40:19.264 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-41987"] 18-Apr-2024 12:40:19.267 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Apr-2024 12:40:19.269 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-41987"] 18-Apr-2024 12:40:19.269 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-41987"] 18-Apr-2024 12:40:19.273 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 18-Apr-2024 12:40:19.274 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 18-Apr-2024 12:40:19.282 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Apr-2024 12:40:19.282 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.23-dev] 18-Apr-2024 12:40:19.287 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-36793"] 18-Apr-2024 12:40:19.290 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-36793"] 18-Apr-2024 12:40:19.292 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Apr-2024 12:40:19.294 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-36793"] 18-Apr-2024 12:40:19.294 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-36793"] 18-Apr-2024 12:40:19.300 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 18-Apr-2024 12:40:19.301 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 18-Apr-2024 12:40:19.308 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 18-Apr-2024 12:40:19.318 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 18-Apr-2024 12:40:19.331 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Apr-2024 12:40:19.331 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.23-dev] 18-Apr-2024 12:40:19.350 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-35295"] 18-Apr-2024 12:40:19.355 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-35295"] 18-Apr-2024 12:40:19.356 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Apr-2024 12:40:19.358 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-35295"] 18-Apr-2024 12:40:19.358 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-35295"] 18-Apr-2024 12:40:19.366 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 18-Apr-2024 12:40:19.368 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 18-Apr-2024 12:40:19.374 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Apr-2024 12:40:19.374 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.23-dev] 18-Apr-2024 12:40:19.379 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-36475"] 18-Apr-2024 12:40:19.383 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-36475"] 18-Apr-2024 12:40:19.383 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Apr-2024 12:40:19.385 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-36475"] 18-Apr-2024 12:40:19.386 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-36475"] 18-Apr-2024 12:40:19.394 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 18-Apr-2024 12:40:19.398 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 18-Apr-2024 12:40:19.407 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Apr-2024 12:40:19.407 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.23-dev] 18-Apr-2024 12:40:19.412 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41313"] 18-Apr-2024 12:40:19.416 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41313"] 18-Apr-2024 12:40:19.419 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Apr-2024 12:40:19.420 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41313"] 18-Apr-2024 12:40:19.421 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41313"] 18-Apr-2024 12:40:19.424 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 18-Apr-2024 12:40:19.426 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 18-Apr-2024 12:40:19.453 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Apr-2024 12:40:19.453 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.23-dev] 18-Apr-2024 12:40:19.462 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-42879"] 18-Apr-2024 12:40:19.470 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-42879"] 18-Apr-2024 12:40:19.471 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Apr-2024 12:40:19.473 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-42879"] 18-Apr-2024 12:40:19.474 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-42879"] 18-Apr-2024 12:40:19.476 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 18-Apr-2024 12:40:19.477 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 18-Apr-2024 12:40:19.478 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 18-Apr-2024 12:40:19.479 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 18-Apr-2024 12:40:19.491 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Apr-2024 12:40:19.491 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.23-dev] 18-Apr-2024 12:40:19.494 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-36111"] 18-Apr-2024 12:40:19.520 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-36111"] 18-Apr-2024 12:40:19.521 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Apr-2024 12:40:19.528 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-36111"] 18-Apr-2024 12:40:19.530 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-36111"] 18-Apr-2024 12:40:19.539 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 18-Apr-2024 12:40:19.540 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 18-Apr-2024 12:40:19.554 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Apr-2024 12:40:19.554 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.23-dev] 18-Apr-2024 12:40:19.569 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-35109"] 18-Apr-2024 12:40:19.573 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-35109"] 18-Apr-2024 12:40:19.574 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Apr-2024 12:40:19.576 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-35109"] 18-Apr-2024 12:40:19.582 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-35109"] 18-Apr-2024 12:40:19.594 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 18-Apr-2024 12:40:19.596 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 18-Apr-2024 12:40:19.682 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Apr-2024 12:40:19.682 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.23-dev] 18-Apr-2024 12:40:19.696 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41799"] 18-Apr-2024 12:40:19.707 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41799"] 18-Apr-2024 12:40:19.711 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Apr-2024 12:40:19.713 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41799"] 18-Apr-2024 12:40:19.713 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41799"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 2.041 sec Testcase: testUseContentTypeExpiresConfiguration took 0.071 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.268 sec Testcase: testConfiguration took 0.039 sec Testcase: testNullContentType took 0.025 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.008 sec Testcase: testUseDefaultConfiguration1 took 0.06 sec Testcase: testUseDefaultConfiguration2 took 0.028 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.03 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.052 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.06 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.056 sec Testcase: testEmptyContent took 0.121 sec