Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.644 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 24 Oct 2023 16:55:02 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 24 Oct 2023 16:58:02 GMT Content-Length: 11 Date: Tue, 24 Oct 2023 16:55:02 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 24 Oct 2023 16:55:02 GMT Expires: Tue, 24 Oct 2023 17:02:02 GMT Keep-Alive: timeout=3 ETag: W/"971-1698165567062" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 24 Oct 2023 16:56:02 GMT Content-Length: 0 Date: Tue, 24 Oct 2023 16:55:02 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 24 Oct 2023 16:56:02 GMT Content-Length: 11 Date: Tue, 24 Oct 2023 16:55:02 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 24 Oct 2023 16:56:02 GMT Content-Length: 11 Date: Tue, 24 Oct 2023 16:55:02 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 24 Oct 2023 17:02:02 GMT Content-Length: 11 Date: Tue, 24 Oct 2023 16:55:02 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, 24 Oct 2023 16:55:02 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 24 Oct 2023 16:55:02 GMT Content-Length: 11 Date: Tue, 24 Oct 2023 16:55:02 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 24 Oct 2023 17:00:03 GMT Content-Length: 11 Date: Tue, 24 Oct 2023 16:55:03 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 24 Oct 2023 17:02:03 GMT Content-Length: 0 Date: Tue, 24 Oct 2023 16:55:03 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 24-Oct-2023 16:55:01.036 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 24-Oct-2023 16:55:01.724 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 24-Oct-2023 16:55:01.751 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 16:55:01.751 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M14-dev] 24-Oct-2023 16:55:01.911 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-36257"] 24-Oct-2023 16:55:02.054 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-36257"] 24-Oct-2023 16:55:02.057 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 16:55:02.082 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-36257"] 24-Oct-2023 16:55:02.094 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-36257"] 24-Oct-2023 16:55:02.110 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 24-Oct-2023 16:55:02.112 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 24-Oct-2023 16:55:02.113 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 16:55:02.113 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M14-dev] 24-Oct-2023 16:55:02.124 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-38417"] 24-Oct-2023 16:55:02.156 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-38417"] 24-Oct-2023 16:55:02.158 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 16:55:02.162 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-38417"] 24-Oct-2023 16:55:02.165 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-38417"] 24-Oct-2023 16:55:02.167 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 24-Oct-2023 16:55:02.168 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 24-Oct-2023 16:55:02.169 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 24-Oct-2023 16:55:02.176 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 24-Oct-2023 16:55:02.177 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 16:55:02.177 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M14-dev] 24-Oct-2023 16:55:02.240 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 24-Oct-2023 16:55:02.449 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-44633"] 24-Oct-2023 16:55:02.471 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-44633"] 24-Oct-2023 16:55:02.473 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 16:55:02.480 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-44633"] 24-Oct-2023 16:55:02.486 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-44633"] 24-Oct-2023 16:55:02.489 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 24-Oct-2023 16:55:02.493 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 24-Oct-2023 16:55:02.494 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 16:55:02.494 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M14-dev] 24-Oct-2023 16:55:02.501 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-35595"] 24-Oct-2023 16:55:02.513 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-35595"] 24-Oct-2023 16:55:02.513 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 16:55:02.516 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-35595"] 24-Oct-2023 16:55:02.522 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-35595"] 24-Oct-2023 16:55:02.524 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 24-Oct-2023 16:55:02.525 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 24-Oct-2023 16:55:02.526 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 16:55:02.526 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M14-dev] 24-Oct-2023 16:55:02.531 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-44679"] 24-Oct-2023 16:55:02.650 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-44679"] 24-Oct-2023 16:55:02.653 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 16:55:02.656 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-44679"] 24-Oct-2023 16:55:02.665 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-44679"] 24-Oct-2023 16:55:02.666 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 24-Oct-2023 16:55:02.668 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 24-Oct-2023 16:55:02.669 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 24-Oct-2023 16:55:02.671 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 24-Oct-2023 16:55:02.672 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 16:55:02.673 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M14-dev] 24-Oct-2023 16:55:02.678 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-35177"] 24-Oct-2023 16:55:02.687 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-35177"] 24-Oct-2023 16:55:02.688 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 16:55:02.693 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-35177"] 24-Oct-2023 16:55:02.696 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-35177"] 24-Oct-2023 16:55:02.697 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 24-Oct-2023 16:55:02.699 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 24-Oct-2023 16:55:02.700 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 16:55:02.700 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M14-dev] 24-Oct-2023 16:55:02.707 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-39853"] 24-Oct-2023 16:55:02.724 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-39853"] 24-Oct-2023 16:55:02.727 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 16:55:02.733 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-39853"] 24-Oct-2023 16:55:02.740 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-39853"] 24-Oct-2023 16:55:02.742 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 24-Oct-2023 16:55:02.747 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 24-Oct-2023 16:55:02.749 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 16:55:02.749 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M14-dev] 24-Oct-2023 16:55:02.760 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-43891"] 24-Oct-2023 16:55:02.783 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-43891"] 24-Oct-2023 16:55:02.784 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 16:55:02.786 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-43891"] 24-Oct-2023 16:55:02.788 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-43891"] 24-Oct-2023 16:55:02.790 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 24-Oct-2023 16:55:02.791 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 24-Oct-2023 16:55:02.792 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 16:55:02.792 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M14-dev] 24-Oct-2023 16:55:02.801 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-35717"] 24-Oct-2023 16:55:02.844 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-35717"] 24-Oct-2023 16:55:02.846 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 16:55:02.849 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-35717"] 24-Oct-2023 16:55:02.852 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-35717"] 24-Oct-2023 16:55:02.853 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 24-Oct-2023 16:55:02.861 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 24-Oct-2023 16:55:02.864 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 24-Oct-2023 16:55:02.870 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 24-Oct-2023 16:55:02.870 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 16:55:02.871 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M14-dev] 24-Oct-2023 16:55:02.916 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-36035"] 24-Oct-2023 16:55:02.992 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-36035"] 24-Oct-2023 16:55:02.994 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 16:55:03.005 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-36035"] 24-Oct-2023 16:55:03.019 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-36035"] 24-Oct-2023 16:55:03.020 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 24-Oct-2023 16:55:03.022 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 24-Oct-2023 16:55:03.023 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 16:55:03.023 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M14-dev] 24-Oct-2023 16:55:03.033 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-42351"] 24-Oct-2023 16:55:03.153 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-42351"] 24-Oct-2023 16:55:03.155 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 16:55:03.157 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-42351"] 24-Oct-2023 16:55:03.162 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-42351"] 24-Oct-2023 16:55:03.164 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 24-Oct-2023 16:55:03.171 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 24-Oct-2023 16:55:03.172 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 16:55:03.172 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M14-dev] 24-Oct-2023 16:55:03.177 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-37825"] 24-Oct-2023 16:55:03.219 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-37825"] 24-Oct-2023 16:55:03.222 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 16:55:03.224 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-37825"] 24-Oct-2023 16:55:03.228 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-37825"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.393 sec Testcase: testUseContentTypeExpiresConfiguration took 0.057 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.32 sec Testcase: testConfiguration took 0.035 sec Testcase: testNullContentType took 0.143 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.003 sec Testcase: testUseDefaultConfiguration1 took 0.028 sec Testcase: testUseDefaultConfiguration2 took 0.044 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.048 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.064 sec Testcase: testIntsToCommaDelimitedString took 0.008 sec Testcase: testSkipBecauseExpiresIsDefined took 0.159 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.143 sec Testcase: testEmptyContent took 0.066 sec