Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.645 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Mon, 22 May 2023 14:18:38 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Mon, 22 May 2023 14:21:38 GMT Content-Length: 11 Date: Mon, 22 May 2023 14:18:38 GMT Content-Type: text/xml;charset=utf-8 Date: Mon, 22 May 2023 14:18:38 GMT Expires: Mon, 22 May 2023 14:25:38 GMT Keep-Alive: timeout=3 ETag: W/"971-1684764134326" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=59 Connection: keep-alive Expires: Mon, 22 May 2023 14:19:38 GMT Content-Length: 0 Date: Mon, 22 May 2023 14:18:38 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 22 May 2023 14:19:38 GMT Content-Length: 11 Date: Mon, 22 May 2023 14:18:38 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Mon, 22 May 2023 14:19:39 GMT Content-Length: 11 Date: Mon, 22 May 2023 14:18:38 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 22 May 2023 14:25:39 GMT Content-Length: 11 Date: Mon, 22 May 2023 14:18:38 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, 22 May 2023 14:18:38 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Mon, 22 May 2023 14:18:39 GMT Content-Length: 11 Date: Mon, 22 May 2023 14:18:38 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Mon, 22 May 2023 14:23:39 GMT Content-Length: 11 Date: Mon, 22 May 2023 14:18:38 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 22 May 2023 14:25:39 GMT Content-Length: 0 Date: Mon, 22 May 2023 14:18:38 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 22-May-2023 14:18:37.185 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 22-May-2023 14:18:37.794 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 22-May-2023 14:18:37.838 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 14:18:37.838 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 14:18:38.067 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-40459"] 22-May-2023 14:18:38.233 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-40459"] 22-May-2023 14:18:38.243 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 14:18:38.271 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-40459"] 22-May-2023 14:18:38.279 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-40459"] 22-May-2023 14:18:38.294 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 22-May-2023 14:18:38.296 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 22-May-2023 14:18:38.298 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 14:18:38.298 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 14:18:38.314 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-40071"] 22-May-2023 14:18:38.371 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-40071"] 22-May-2023 14:18:38.379 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 14:18:38.381 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-40071"] 22-May-2023 14:18:38.386 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-40071"] 22-May-2023 14:18:38.389 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 22-May-2023 14:18:38.390 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 22-May-2023 14:18:38.391 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 22-May-2023 14:18:38.414 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 22-May-2023 14:18:38.419 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 14:18:38.420 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 14:18:38.533 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 22-May-2023 14:18:38.662 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-35523"] 22-May-2023 14:18:38.769 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-35523"] 22-May-2023 14:18:38.775 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 14:18:38.782 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-35523"] 22-May-2023 14:18:38.792 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-35523"] 22-May-2023 14:18:38.794 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 22-May-2023 14:18:38.796 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 22-May-2023 14:18:38.797 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 14:18:38.797 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 14:18:38.812 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-37143"] 22-May-2023 14:18:38.891 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-37143"] 22-May-2023 14:18:38.895 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 14:18:38.898 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-37143"] 22-May-2023 14:18:38.901 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-37143"] 22-May-2023 14:18:38.914 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 22-May-2023 14:18:38.916 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 22-May-2023 14:18:38.916 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 14:18:38.917 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 14:18:38.934 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-40727"] 22-May-2023 14:18:38.943 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-40727"] 22-May-2023 14:18:38.944 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 14:18:38.948 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-40727"] 22-May-2023 14:18:38.953 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-40727"] 22-May-2023 14:18:38.955 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 22-May-2023 14:18:38.956 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 22-May-2023 14:18:38.957 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 22-May-2023 14:18:38.959 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 22-May-2023 14:18:38.960 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 14:18:38.960 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 14:18:38.977 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-42053"] 22-May-2023 14:18:38.990 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-42053"] 22-May-2023 14:18:38.993 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 14:18:38.996 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-42053"] 22-May-2023 14:18:39.006 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-42053"] 22-May-2023 14:18:39.008 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 22-May-2023 14:18:39.010 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 22-May-2023 14:18:39.011 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 14:18:39.016 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 14:18:39.034 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-39719"] 22-May-2023 14:18:39.051 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-39719"] 22-May-2023 14:18:39.054 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 14:18:39.056 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-39719"] 22-May-2023 14:18:39.062 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-39719"] 22-May-2023 14:18:39.065 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 22-May-2023 14:18:39.067 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 22-May-2023 14:18:39.067 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 14:18:39.068 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 14:18:39.079 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-39297"] 22-May-2023 14:18:39.094 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-39297"] 22-May-2023 14:18:39.102 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 14:18:39.105 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-39297"] 22-May-2023 14:18:39.108 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-39297"] 22-May-2023 14:18:39.110 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 22-May-2023 14:18:39.112 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 22-May-2023 14:18:39.113 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 14:18:39.113 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 14:18:39.122 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-33187"] 22-May-2023 14:18:39.134 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-33187"] 22-May-2023 14:18:39.137 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 14:18:39.139 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-33187"] 22-May-2023 14:18:39.141 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-33187"] 22-May-2023 14:18:39.142 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 22-May-2023 14:18:39.144 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 22-May-2023 14:18:39.145 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 22-May-2023 14:18:39.146 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 22-May-2023 14:18:39.147 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 14:18:39.147 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 14:18:39.155 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-43537"] 22-May-2023 14:18:39.166 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-43537"] 22-May-2023 14:18:39.169 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 14:18:39.171 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-43537"] 22-May-2023 14:18:39.177 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-43537"] 22-May-2023 14:18:39.179 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 22-May-2023 14:18:39.181 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 22-May-2023 14:18:39.184 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 14:18:39.184 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 14:18:39.193 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-35485"] 22-May-2023 14:18:39.204 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-35485"] 22-May-2023 14:18:39.207 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 14:18:39.211 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-35485"] 22-May-2023 14:18:39.214 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-35485"] 22-May-2023 14:18:39.218 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 22-May-2023 14:18:39.222 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 22-May-2023 14:18:39.225 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 14:18:39.227 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 14:18:39.240 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-37055"] 22-May-2023 14:18:39.252 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-37055"] 22-May-2023 14:18:39.259 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 14:18:39.262 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-37055"] 22-May-2023 14:18:39.267 WARNING [http-nio-127.0.0.1-auto-15-Poller] org.apache.tomcat.util.net.NioEndpoint$Poller.events Invalid null socket channel while processing poller event 22-May-2023 14:18:39.270 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-37055"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.556 sec Testcase: testUseContentTypeExpiresConfiguration took 0.094 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.403 sec Testcase: testConfiguration took 0.119 sec Testcase: testNullContentType took 0.042 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.05 sec Testcase: testUseDefaultConfiguration2 took 0.055 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.044 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.032 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.035 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.038 sec Testcase: testEmptyContent took 0.054 sec