Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.154 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Fri, 27 Oct 2023 13:36:49 GMT Keep-Alive: timeout=3 Cache-Control: max-age=179 Connection: keep-alive Expires: Fri, 27 Oct 2023 13:39:50 GMT Content-Length: 11 Date: Fri, 27 Oct 2023 13:36:50 GMT Content-Type: text/xml;charset=utf-8 Date: Fri, 27 Oct 2023 13:36:50 GMT Expires: Fri, 27 Oct 2023 13:43:50 GMT Keep-Alive: timeout=3 ETag: W/"971-1698413216394" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Fri, 27 Oct 2023 13:37:50 GMT Content-Length: 0 Date: Fri, 27 Oct 2023 13:36:50 GMT Keep-Alive: timeout=3 Cache-Control: max-age=59 Connection: keep-alive Expires: Fri, 27 Oct 2023 13:37:50 GMT Content-Length: 11 Date: Fri, 27 Oct 2023 13:36:50 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Fri, 27 Oct 2023 13:37:50 GMT Content-Length: 11 Date: Fri, 27 Oct 2023 13:36:50 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Fri, 27 Oct 2023 13:43:50 GMT Content-Length: 11 Date: Fri, 27 Oct 2023 13:36:50 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: Fri, 27 Oct 2023 13:36:50 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Fri, 27 Oct 2023 13:36:50 GMT Content-Length: 11 Date: Fri, 27 Oct 2023 13:36:50 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Fri, 27 Oct 2023 13:41:50 GMT Content-Length: 11 Date: Fri, 27 Oct 2023 13:36:50 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Fri, 27 Oct 2023 13:43:50 GMT Content-Length: 0 Date: Fri, 27 Oct 2023 13:36:50 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 27-Oct-2023 13:36:48.982 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 27-Oct-2023 13:36:49.586 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 27-Oct-2023 13:36:49.629 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Oct-2023 13:36:49.629 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 27-Oct-2023 13:36:49.869 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-36323"] 27-Oct-2023 13:36:49.983 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-36323"] 27-Oct-2023 13:36:49.984 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Oct-2023 13:36:50.001 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-36323"] 27-Oct-2023 13:36:50.009 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-36323"] 27-Oct-2023 13:36:50.018 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 27-Oct-2023 13:36:50.021 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 27-Oct-2023 13:36:50.021 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Oct-2023 13:36:50.022 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 27-Oct-2023 13:36:50.034 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-32995"] 27-Oct-2023 13:36:50.064 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-32995"] 27-Oct-2023 13:36:50.066 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Oct-2023 13:36:50.069 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-32995"] 27-Oct-2023 13:36:50.074 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-32995"] 27-Oct-2023 13:36:50.083 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 27-Oct-2023 13:36:50.084 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 27-Oct-2023 13:36:50.088 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 27-Oct-2023 13:36:50.096 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 27-Oct-2023 13:36:50.097 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Oct-2023 13:36:50.097 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 27-Oct-2023 13:36:50.165 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 27-Oct-2023 13:36:50.338 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-33315"] 27-Oct-2023 13:36:50.350 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-33315"] 27-Oct-2023 13:36:50.352 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Oct-2023 13:36:50.361 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-33315"] 27-Oct-2023 13:36:50.373 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-33315"] 27-Oct-2023 13:36:50.375 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 27-Oct-2023 13:36:50.377 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 27-Oct-2023 13:36:50.380 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Oct-2023 13:36:50.381 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 27-Oct-2023 13:36:50.398 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-38789"] 27-Oct-2023 13:36:50.507 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-38789"] 27-Oct-2023 13:36:50.507 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Oct-2023 13:36:50.509 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-38789"] 27-Oct-2023 13:36:50.512 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-38789"] 27-Oct-2023 13:36:50.514 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 27-Oct-2023 13:36:50.516 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 27-Oct-2023 13:36:50.517 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Oct-2023 13:36:50.517 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 27-Oct-2023 13:36:50.528 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-46257"] 27-Oct-2023 13:36:50.569 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-46257"] 27-Oct-2023 13:36:50.572 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Oct-2023 13:36:50.575 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-46257"] 27-Oct-2023 13:36:50.579 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-46257"] 27-Oct-2023 13:36:50.580 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 27-Oct-2023 13:36:50.582 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 27-Oct-2023 13:36:50.583 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 27-Oct-2023 13:36:50.585 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 27-Oct-2023 13:36:50.586 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Oct-2023 13:36:50.586 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 27-Oct-2023 13:36:50.600 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-41787"] 27-Oct-2023 13:36:50.609 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-41787"] 27-Oct-2023 13:36:50.612 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Oct-2023 13:36:50.614 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-41787"] 27-Oct-2023 13:36:50.624 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-41787"] 27-Oct-2023 13:36:50.625 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 27-Oct-2023 13:36:50.627 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 27-Oct-2023 13:36:50.628 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Oct-2023 13:36:50.628 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 27-Oct-2023 13:36:50.637 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-46421"] 27-Oct-2023 13:36:50.655 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-46421"] 27-Oct-2023 13:36:50.658 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Oct-2023 13:36:50.660 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-46421"] 27-Oct-2023 13:36:50.663 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-46421"] 27-Oct-2023 13:36:50.665 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 27-Oct-2023 13:36:50.668 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 27-Oct-2023 13:36:50.668 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Oct-2023 13:36:50.668 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 27-Oct-2023 13:36:50.694 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-43141"] 27-Oct-2023 13:36:50.709 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-43141"] 27-Oct-2023 13:36:50.713 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Oct-2023 13:36:50.715 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-43141"] 27-Oct-2023 13:36:50.718 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-43141"] 27-Oct-2023 13:36:50.719 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 27-Oct-2023 13:36:50.721 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 27-Oct-2023 13:36:50.721 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Oct-2023 13:36:50.722 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 27-Oct-2023 13:36:50.726 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-45465"] 27-Oct-2023 13:36:50.733 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-45465"] 27-Oct-2023 13:36:50.736 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Oct-2023 13:36:50.738 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-45465"] 27-Oct-2023 13:36:50.740 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-45465"] 27-Oct-2023 13:36:50.741 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 27-Oct-2023 13:36:50.742 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 27-Oct-2023 13:36:50.743 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 27-Oct-2023 13:36:50.744 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 27-Oct-2023 13:36:50.745 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Oct-2023 13:36:50.745 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 27-Oct-2023 13:36:50.750 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-40323"] 27-Oct-2023 13:36:50.761 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-40323"] 27-Oct-2023 13:36:50.763 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Oct-2023 13:36:50.766 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-40323"] 27-Oct-2023 13:36:50.768 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-40323"] 27-Oct-2023 13:36:50.769 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 27-Oct-2023 13:36:50.771 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 27-Oct-2023 13:36:50.772 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Oct-2023 13:36:50.772 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 27-Oct-2023 13:36:50.778 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-44515"] 27-Oct-2023 13:36:50.787 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-44515"] 27-Oct-2023 13:36:50.788 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Oct-2023 13:36:50.791 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-44515"] 27-Oct-2023 13:36:50.796 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-44515"] 27-Oct-2023 13:36:50.798 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 27-Oct-2023 13:36:50.800 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 27-Oct-2023 13:36:50.801 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Oct-2023 13:36:50.801 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 27-Oct-2023 13:36:50.807 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-41839"] 27-Oct-2023 13:36:50.816 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-41839"] 27-Oct-2023 13:36:50.819 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Oct-2023 13:36:50.820 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-41839"] 27-Oct-2023 13:36:50.827 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-41839"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.281 sec Testcase: testUseContentTypeExpiresConfiguration took 0.064 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.289 sec Testcase: testConfiguration took 0.139 sec Testcase: testNullContentType took 0.067 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.043 sec Testcase: testUseDefaultConfiguration2 took 0.04 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.053 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.022 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.026 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.029 sec Testcase: testEmptyContent took 0.029 sec