Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.027 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Mon, 23 Oct 2023 19:04:14 GMT Keep-Alive: timeout=3 Cache-Control: max-age=179 Connection: keep-alive Expires: Mon, 23 Oct 2023 19:07:14 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 19:04:14 GMT Content-Type: text/xml;charset=utf-8 Date: Mon, 23 Oct 2023 19:04:14 GMT Expires: Mon, 23 Oct 2023 19:11:14 GMT Keep-Alive: timeout=3 ETag: W/"971-1698087289593" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 23 Oct 2023 19:05:14 GMT Content-Length: 0 Date: Mon, 23 Oct 2023 19:04:14 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 23 Oct 2023 19:05:14 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 19:04:14 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Mon, 23 Oct 2023 19:05:15 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 19:04:14 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 23 Oct 2023 19:11:15 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 19:04:14 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, 23 Oct 2023 19:04:14 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Mon, 23 Oct 2023 19:04:15 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 19:04:14 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Mon, 23 Oct 2023 19:09:15 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 19:04:14 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 23 Oct 2023 19:11:15 GMT Content-Length: 0 Date: Mon, 23 Oct 2023 19:04:14 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 23-Oct-2023 19:04:12.541 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 23-Oct-2023 19:04:13.661 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 23-Oct-2023 19:04:13.727 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 19:04:13.728 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 19:04:14.005 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-43187"] 23-Oct-2023 19:04:14.377 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-43187"] 23-Oct-2023 19:04:14.378 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 19:04:14.429 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-43187"] 23-Oct-2023 19:04:14.446 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-43187"] 23-Oct-2023 19:04:14.463 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 23-Oct-2023 19:04:14.476 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 23-Oct-2023 19:04:14.476 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 19:04:14.479 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 19:04:14.488 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-34121"] 23-Oct-2023 19:04:14.519 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-34121"] 23-Oct-2023 19:04:14.521 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 19:04:14.530 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-34121"] 23-Oct-2023 19:04:14.533 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-34121"] 23-Oct-2023 19:04:14.537 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 23-Oct-2023 19:04:14.539 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 23-Oct-2023 19:04:14.539 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 23-Oct-2023 19:04:14.549 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 23-Oct-2023 19:04:14.550 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 19:04:14.550 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 19:04:14.588 INFO [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 23-Oct-2023 19:04:14.768 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-41685"] 23-Oct-2023 19:04:14.818 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-41685"] 23-Oct-2023 19:04:14.821 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 19:04:14.833 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-41685"] 23-Oct-2023 19:04:14.844 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-41685"] 23-Oct-2023 19:04:14.847 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 23-Oct-2023 19:04:14.849 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 23-Oct-2023 19:04:14.849 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 19:04:14.849 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 19:04:14.859 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-36479"] 23-Oct-2023 19:04:14.865 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-36479"] 23-Oct-2023 19:04:14.868 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 19:04:14.871 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-36479"] 23-Oct-2023 19:04:14.877 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-36479"] 23-Oct-2023 19:04:14.881 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 23-Oct-2023 19:04:14.883 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 23-Oct-2023 19:04:14.884 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 19:04:14.884 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 19:04:14.911 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-41471"] 23-Oct-2023 19:04:14.923 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-41471"] 23-Oct-2023 19:04:14.926 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 19:04:14.936 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-41471"] 23-Oct-2023 19:04:14.939 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-41471"] 23-Oct-2023 19:04:14.942 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 23-Oct-2023 19:04:14.943 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 23-Oct-2023 19:04:14.943 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 23-Oct-2023 19:04:14.945 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 23-Oct-2023 19:04:14.946 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 19:04:14.946 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 19:04:14.960 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-42493"] 23-Oct-2023 19:04:14.967 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-42493"] 23-Oct-2023 19:04:14.970 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 19:04:14.972 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-42493"] 23-Oct-2023 19:04:14.981 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-42493"] 23-Oct-2023 19:04:14.986 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 23-Oct-2023 19:04:14.988 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 23-Oct-2023 19:04:14.989 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 19:04:14.989 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 19:04:14.994 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-42147"] 23-Oct-2023 19:04:15.001 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-42147"] 23-Oct-2023 19:04:15.004 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 19:04:15.006 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-42147"] 23-Oct-2023 19:04:15.009 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-42147"] 23-Oct-2023 19:04:15.015 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 23-Oct-2023 19:04:15.017 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 23-Oct-2023 19:04:15.023 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 19:04:15.023 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 19:04:15.032 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-33327"] 23-Oct-2023 19:04:15.040 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-33327"] 23-Oct-2023 19:04:15.043 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 19:04:15.045 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-33327"] 23-Oct-2023 19:04:15.047 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-33327"] 23-Oct-2023 19:04:15.050 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 23-Oct-2023 19:04:15.052 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 23-Oct-2023 19:04:15.053 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 19:04:15.053 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 19:04:15.066 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-39281"] 23-Oct-2023 19:04:15.074 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-39281"] 23-Oct-2023 19:04:15.075 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 19:04:15.077 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-39281"] 23-Oct-2023 19:04:15.079 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-39281"] 23-Oct-2023 19:04:15.082 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 23-Oct-2023 19:04:15.083 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 23-Oct-2023 19:04:15.083 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 23-Oct-2023 19:04:15.085 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 23-Oct-2023 19:04:15.085 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 19:04:15.086 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 19:04:15.092 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-36267"] 23-Oct-2023 19:04:15.125 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-36267"] 23-Oct-2023 19:04:15.127 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 19:04:15.133 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-36267"] 23-Oct-2023 19:04:15.142 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-36267"] 23-Oct-2023 19:04:15.145 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 23-Oct-2023 19:04:15.147 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 23-Oct-2023 19:04:15.147 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 19:04:15.147 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 19:04:15.172 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-45417"] 23-Oct-2023 19:04:15.193 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-45417"] 23-Oct-2023 19:04:15.199 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 19:04:15.201 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-45417"] 23-Oct-2023 19:04:15.204 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-45417"] 23-Oct-2023 19:04:15.206 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 23-Oct-2023 19:04:15.208 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 23-Oct-2023 19:04:15.208 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 19:04:15.208 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 23-Oct-2023 19:04:15.231 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-33879"] 23-Oct-2023 19:04:15.246 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-33879"] 23-Oct-2023 19:04:15.247 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 19:04:15.250 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-33879"] 23-Oct-2023 19:04:15.257 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-33879"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 2.177 sec Testcase: testUseContentTypeExpiresConfiguration took 0.076 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.307 sec Testcase: testConfiguration took 0.035 sec Testcase: testNullContentType took 0.06 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.043 sec Testcase: testUseDefaultConfiguration2 took 0.025 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.039 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.031 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.061 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.062 sec Testcase: testEmptyContent took 0.052 sec