Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.981 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Mon, 09 Oct 2023 19:16:41 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Mon, 09 Oct 2023 19:19:41 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 19:16:41 GMT Content-Type: text/xml;charset=utf-8 Date: Mon, 09 Oct 2023 19:16:41 GMT Expires: Mon, 09 Oct 2023 19:23:41 GMT Keep-Alive: timeout=3 ETag: W/"971-1696878410088" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 09 Oct 2023 19:17:41 GMT Content-Length: 0 Date: Mon, 09 Oct 2023 19:16:41 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 09 Oct 2023 19:17:41 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 19:16:41 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Mon, 09 Oct 2023 19:17:41 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 19:16:41 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 09 Oct 2023 19:23:41 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 19:16:41 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, 09 Oct 2023 19:16:41 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Mon, 09 Oct 2023 19:16:41 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 19:16:41 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Mon, 09 Oct 2023 19:21:41 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 19:16:41 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 09 Oct 2023 19:23:41 GMT Content-Length: 0 Date: Mon, 09 Oct 2023 19:16:41 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 09-Oct-2023 19:16:39.964 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 09-Oct-2023 19:16:40.728 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 09-Oct-2023 19:16:40.785 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:16:40.786 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 19:16:40.906 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-43337"] 09-Oct-2023 19:16:41.096 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-43337"] 09-Oct-2023 19:16:41.100 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:16:41.124 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-43337"] 09-Oct-2023 19:16:41.135 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-43337"] 09-Oct-2023 19:16:41.148 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 09-Oct-2023 19:16:41.159 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 09-Oct-2023 19:16:41.159 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:16:41.160 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 19:16:41.165 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-41603"] 09-Oct-2023 19:16:41.181 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-41603"] 09-Oct-2023 19:16:41.182 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:16:41.184 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-41603"] 09-Oct-2023 19:16:41.188 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-41603"] 09-Oct-2023 19:16:41.190 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 09-Oct-2023 19:16:41.191 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 09-Oct-2023 19:16:41.192 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 09-Oct-2023 19:16:41.200 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 09-Oct-2023 19:16:41.200 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:16:41.201 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 19:16:41.246 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 09-Oct-2023 19:16:41.346 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-35559"] 09-Oct-2023 19:16:41.367 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-35559"] 09-Oct-2023 19:16:41.368 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:16:41.374 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-35559"] 09-Oct-2023 19:16:41.376 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-35559"] 09-Oct-2023 19:16:41.378 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 09-Oct-2023 19:16:41.380 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 09-Oct-2023 19:16:41.381 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:16:41.381 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 19:16:41.385 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-45331"] 09-Oct-2023 19:16:41.396 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-45331"] 09-Oct-2023 19:16:41.396 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:16:41.398 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-45331"] 09-Oct-2023 19:16:41.400 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-45331"] 09-Oct-2023 19:16:41.401 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 09-Oct-2023 19:16:41.403 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 09-Oct-2023 19:16:41.404 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:16:41.404 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 19:16:41.409 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-39323"] 09-Oct-2023 19:16:41.417 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-39323"] 09-Oct-2023 19:16:41.419 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:16:41.422 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-39323"] 09-Oct-2023 19:16:41.424 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-39323"] 09-Oct-2023 19:16:41.426 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 09-Oct-2023 19:16:41.428 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 09-Oct-2023 19:16:41.429 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 09-Oct-2023 19:16:41.430 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 09-Oct-2023 19:16:41.432 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:16:41.433 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 19:16:41.440 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-32915"] 09-Oct-2023 19:16:41.457 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-32915"] 09-Oct-2023 19:16:41.460 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:16:41.462 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-32915"] 09-Oct-2023 19:16:41.464 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-32915"] 09-Oct-2023 19:16:41.467 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 09-Oct-2023 19:16:41.469 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 09-Oct-2023 19:16:41.469 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:16:41.469 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 19:16:41.474 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-34897"] 09-Oct-2023 19:16:41.485 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-34897"] 09-Oct-2023 19:16:41.486 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:16:41.488 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-34897"] 09-Oct-2023 19:16:41.493 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-34897"] 09-Oct-2023 19:16:41.494 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 09-Oct-2023 19:16:41.496 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 09-Oct-2023 19:16:41.497 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:16:41.497 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 19:16:41.502 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-46749"] 09-Oct-2023 19:16:41.514 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-46749"] 09-Oct-2023 19:16:41.516 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:16:41.519 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-46749"] 09-Oct-2023 19:16:41.521 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-46749"] 09-Oct-2023 19:16:41.523 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 09-Oct-2023 19:16:41.525 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 09-Oct-2023 19:16:41.525 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:16:41.525 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 19:16:41.530 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-34719"] 09-Oct-2023 19:16:41.541 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-34719"] 09-Oct-2023 19:16:41.541 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:16:41.543 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-34719"] 09-Oct-2023 19:16:41.546 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-34719"] 09-Oct-2023 19:16:41.548 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 09-Oct-2023 19:16:41.549 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 09-Oct-2023 19:16:41.550 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 09-Oct-2023 19:16:41.552 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 09-Oct-2023 19:16:41.552 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:16:41.552 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 19:16:41.556 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-42139"] 09-Oct-2023 19:16:41.569 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-42139"] 09-Oct-2023 19:16:41.572 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:16:41.573 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-42139"] 09-Oct-2023 19:16:41.575 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-42139"] 09-Oct-2023 19:16:41.576 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 09-Oct-2023 19:16:41.577 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 09-Oct-2023 19:16:41.578 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:16:41.578 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 19:16:41.582 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-39847"] 09-Oct-2023 19:16:41.590 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-39847"] 09-Oct-2023 19:16:41.590 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:16:41.592 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-39847"] 09-Oct-2023 19:16:41.593 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-39847"] 09-Oct-2023 19:16:41.594 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 09-Oct-2023 19:16:41.596 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 09-Oct-2023 19:16:41.597 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:16:41.597 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 19:16:41.601 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-43559"] 09-Oct-2023 19:16:41.619 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-43559"] 09-Oct-2023 19:16:41.620 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:16:41.622 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-43559"] 09-Oct-2023 19:16:41.627 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-43559"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.436 sec Testcase: testUseContentTypeExpiresConfiguration took 0.042 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.187 sec Testcase: testConfiguration took 0.023 sec Testcase: testNullContentType took 0.024 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.038 sec Testcase: testUseDefaultConfiguration2 took 0.027 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.028 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.026 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.027 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.018 sec Testcase: testEmptyContent took 0.034 sec