Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.234 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Wed, 18 Oct 2023 16:51:11 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Wed, 18 Oct 2023 16:54:11 GMT Content-Length: 11 Date: Wed, 18 Oct 2023 16:51:11 GMT Content-Type: text/xml;charset=utf-8 Date: Wed, 18 Oct 2023 16:51:11 GMT Expires: Wed, 18 Oct 2023 16:58:11 GMT Keep-Alive: timeout=3 ETag: W/"971-1697647264607" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 18 Oct 2023 16:52:11 GMT Content-Length: 0 Date: Wed, 18 Oct 2023 16:51:11 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 18 Oct 2023 16:52:11 GMT Content-Length: 11 Date: Wed, 18 Oct 2023 16:51:11 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Wed, 18 Oct 2023 16:52:11 GMT Content-Length: 11 Date: Wed, 18 Oct 2023 16:51:11 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 18 Oct 2023 16:58:11 GMT Content-Length: 11 Date: Wed, 18 Oct 2023 16:51:11 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: Wed, 18 Oct 2023 16:51:11 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Wed, 18 Oct 2023 16:51:11 GMT Content-Length: 11 Date: Wed, 18 Oct 2023 16:51:11 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Wed, 18 Oct 2023 16:56:11 GMT Content-Length: 11 Date: Wed, 18 Oct 2023 16:51:11 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 18 Oct 2023 16:58:11 GMT Content-Length: 0 Date: Wed, 18 Oct 2023 16:51:11 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 18-Oct-2023 16:51:10.063 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 18-Oct-2023 16:51:10.783 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 18-Oct-2023 16:51:10.818 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 16:51:10.818 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 16:51:10.976 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-34285"] 18-Oct-2023 16:51:11.126 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-34285"] 18-Oct-2023 16:51:11.129 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 16:51:11.176 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-34285"] 18-Oct-2023 16:51:11.184 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-34285"] 18-Oct-2023 16:51:11.194 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 18-Oct-2023 16:51:11.205 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 18-Oct-2023 16:51:11.206 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 16:51:11.206 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 16:51:11.233 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-45465"] 18-Oct-2023 16:51:11.315 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-45465"] 18-Oct-2023 16:51:11.318 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 16:51:11.321 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-45465"] 18-Oct-2023 16:51:11.324 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-45465"] 18-Oct-2023 16:51:11.326 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 18-Oct-2023 16:51:11.327 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 18-Oct-2023 16:51:11.328 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 18-Oct-2023 16:51:11.336 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 18-Oct-2023 16:51:11.336 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 16:51:11.336 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 16:51:11.446 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 18-Oct-2023 16:51:11.635 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-44821"] 18-Oct-2023 16:51:11.723 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-44821"] 18-Oct-2023 16:51:11.724 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 16:51:11.731 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-44821"] 18-Oct-2023 16:51:11.735 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-44821"] 18-Oct-2023 16:51:11.737 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 18-Oct-2023 16:51:11.739 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 18-Oct-2023 16:51:11.740 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 16:51:11.740 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 16:51:11.748 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-36215"] 18-Oct-2023 16:51:11.758 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-36215"] 18-Oct-2023 16:51:11.758 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 16:51:11.761 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-36215"] 18-Oct-2023 16:51:11.762 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-36215"] 18-Oct-2023 16:51:11.764 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 18-Oct-2023 16:51:11.766 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 18-Oct-2023 16:51:11.766 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 16:51:11.766 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 16:51:11.779 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-37333"] 18-Oct-2023 16:51:11.803 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-37333"] 18-Oct-2023 16:51:11.804 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 16:51:11.806 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-37333"] 18-Oct-2023 16:51:11.810 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-37333"] 18-Oct-2023 16:51:11.812 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 18-Oct-2023 16:51:11.813 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 18-Oct-2023 16:51:11.813 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 18-Oct-2023 16:51:11.815 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 18-Oct-2023 16:51:11.816 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 16:51:11.819 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 16:51:11.824 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-45641"] 18-Oct-2023 16:51:11.832 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-45641"] 18-Oct-2023 16:51:11.833 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 16:51:11.835 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-45641"] 18-Oct-2023 16:51:11.838 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-45641"] 18-Oct-2023 16:51:11.839 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 18-Oct-2023 16:51:11.841 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 18-Oct-2023 16:51:11.842 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 16:51:11.842 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 16:51:11.848 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-46551"] 18-Oct-2023 16:51:11.861 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-46551"] 18-Oct-2023 16:51:11.862 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 16:51:11.864 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-46551"] 18-Oct-2023 16:51:11.865 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-46551"] 18-Oct-2023 16:51:11.867 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 18-Oct-2023 16:51:11.869 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 18-Oct-2023 16:51:11.869 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 16:51:11.869 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 16:51:11.874 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-39507"] 18-Oct-2023 16:51:11.888 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-39507"] 18-Oct-2023 16:51:11.889 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 16:51:11.891 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-39507"] 18-Oct-2023 16:51:11.892 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-39507"] 18-Oct-2023 16:51:11.893 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 18-Oct-2023 16:51:11.895 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 18-Oct-2023 16:51:11.895 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 16:51:11.896 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 16:51:11.901 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-39297"] 18-Oct-2023 16:51:11.908 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-39297"] 18-Oct-2023 16:51:11.908 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 16:51:11.910 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-39297"] 18-Oct-2023 16:51:11.912 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-39297"] 18-Oct-2023 16:51:11.914 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 18-Oct-2023 16:51:11.915 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 18-Oct-2023 16:51:11.916 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 18-Oct-2023 16:51:11.917 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 18-Oct-2023 16:51:11.918 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 16:51:11.919 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 16:51:11.925 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-43635"] 18-Oct-2023 16:51:11.934 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-43635"] 18-Oct-2023 16:51:11.937 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 16:51:11.939 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-43635"] 18-Oct-2023 16:51:11.943 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-43635"] 18-Oct-2023 16:51:11.945 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 18-Oct-2023 16:51:11.947 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 18-Oct-2023 16:51:11.948 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 16:51:11.949 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 16:51:11.956 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-38471"] 18-Oct-2023 16:51:11.967 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-38471"] 18-Oct-2023 16:51:11.969 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 16:51:11.971 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-38471"] 18-Oct-2023 16:51:11.974 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-38471"] 18-Oct-2023 16:51:11.976 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 18-Oct-2023 16:51:11.978 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 18-Oct-2023 16:51:11.979 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 16:51:11.979 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 16:51:11.986 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-43247"] 18-Oct-2023 16:51:11.994 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-43247"] 18-Oct-2023 16:51:11.997 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 16:51:11.999 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-43247"] 18-Oct-2023 16:51:12.002 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-43247"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.33 sec Testcase: testUseContentTypeExpiresConfiguration took 0.131 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.001 sec Testcase: testBug63909 took 0.408 sec Testcase: testConfiguration took 0.027 sec Testcase: testNullContentType took 0.048 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.026 sec Testcase: testUseDefaultConfiguration2 took 0.027 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.026 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.021 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.029 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.031 sec Testcase: testEmptyContent took 0.027 sec