Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.398 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Sat, 06 May 2023 05:15:37 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Sat, 06 May 2023 05:18:37 GMT Content-Length: 11 Date: Sat, 06 May 2023 05:15:37 GMT Content-Type: text/xml;charset=utf-8 Date: Sat, 06 May 2023 05:15:37 GMT Expires: Sat, 06 May 2023 05:22:37 GMT Keep-Alive: timeout=3 ETag: W/"971-1683348063763" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Sat, 06 May 2023 05:16:38 GMT Content-Length: 0 Date: Sat, 06 May 2023 05:15:37 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Sat, 06 May 2023 05:16:38 GMT Content-Length: 11 Date: Sat, 06 May 2023 05:15:37 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Sat, 06 May 2023 05:16:38 GMT Content-Length: 11 Date: Sat, 06 May 2023 05:15:37 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Sat, 06 May 2023 05:22:38 GMT Content-Length: 11 Date: Sat, 06 May 2023 05:15:37 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: Sat, 06 May 2023 05:15:37 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Sat, 06 May 2023 05:15:38 GMT Content-Length: 11 Date: Sat, 06 May 2023 05:15:37 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Sat, 06 May 2023 05:20:38 GMT Content-Length: 11 Date: Sat, 06 May 2023 05:15:37 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Sat, 06 May 2023 05:22:38 GMT Content-Length: 0 Date: Sat, 06 May 2023 05:15:37 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 06-May-2023 05:15:36.164 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 06-May-2023 05:15:36.858 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 06-May-2023 05:15:36.957 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-May-2023 05:15:36.957 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 06-May-2023 05:15:37.252 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-34465"] 06-May-2023 05:15:37.441 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-34465"] 06-May-2023 05:15:37.443 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-May-2023 05:15:37.468 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-34465"] 06-May-2023 05:15:37.473 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-34465"] 06-May-2023 05:15:37.487 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 06-May-2023 05:15:37.491 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 06-May-2023 05:15:37.499 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-May-2023 05:15:37.500 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 06-May-2023 05:15:37.511 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42529"] 06-May-2023 05:15:37.532 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42529"] 06-May-2023 05:15:37.533 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-May-2023 05:15:37.536 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42529"] 06-May-2023 05:15:37.537 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42529"] 06-May-2023 05:15:37.541 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 06-May-2023 05:15:37.542 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 06-May-2023 05:15:37.544 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 06-May-2023 05:15:37.552 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 06-May-2023 05:15:37.566 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-May-2023 05:15:37.566 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 06-May-2023 05:15:37.701 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 06-May-2023 05:15:37.938 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-35653"] 06-May-2023 05:15:37.951 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-35653"] 06-May-2023 05:15:37.952 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-May-2023 05:15:37.968 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-35653"] 06-May-2023 05:15:37.969 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-35653"] 06-May-2023 05:15:37.973 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 06-May-2023 05:15:37.975 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 06-May-2023 05:15:37.988 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-May-2023 05:15:37.988 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 06-May-2023 05:15:37.995 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-33595"] 06-May-2023 05:15:37.999 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-33595"] 06-May-2023 05:15:38.003 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-May-2023 05:15:38.006 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-33595"] 06-May-2023 05:15:38.007 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-33595"] 06-May-2023 05:15:38.011 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 06-May-2023 05:15:38.012 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 06-May-2023 05:15:38.021 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-May-2023 05:15:38.021 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 06-May-2023 05:15:38.035 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-38361"] 06-May-2023 05:15:38.045 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-38361"] 06-May-2023 05:15:38.048 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-May-2023 05:15:38.050 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-38361"] 06-May-2023 05:15:38.051 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-38361"] 06-May-2023 05:15:38.054 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 06-May-2023 05:15:38.055 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 06-May-2023 05:15:38.064 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 06-May-2023 05:15:38.066 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 06-May-2023 05:15:38.069 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-May-2023 05:15:38.070 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 06-May-2023 05:15:38.078 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-38771"] 06-May-2023 05:15:38.089 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-38771"] 06-May-2023 05:15:38.092 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-May-2023 05:15:38.100 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-38771"] 06-May-2023 05:15:38.101 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-38771"] 06-May-2023 05:15:38.108 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 06-May-2023 05:15:38.114 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 06-May-2023 05:15:38.120 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-May-2023 05:15:38.120 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 06-May-2023 05:15:38.125 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44849"] 06-May-2023 05:15:38.130 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44849"] 06-May-2023 05:15:38.133 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-May-2023 05:15:38.135 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44849"] 06-May-2023 05:15:38.136 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44849"] 06-May-2023 05:15:38.149 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 06-May-2023 05:15:38.150 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 06-May-2023 05:15:38.163 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-May-2023 05:15:38.163 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 06-May-2023 05:15:38.168 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38495"] 06-May-2023 05:15:38.175 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38495"] 06-May-2023 05:15:38.176 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-May-2023 05:15:38.179 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38495"] 06-May-2023 05:15:38.179 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38495"] 06-May-2023 05:15:38.181 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 06-May-2023 05:15:38.183 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 06-May-2023 05:15:38.184 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-May-2023 05:15:38.185 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 06-May-2023 05:15:38.188 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39193"] 06-May-2023 05:15:38.196 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39193"] 06-May-2023 05:15:38.197 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-May-2023 05:15:38.198 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39193"] 06-May-2023 05:15:38.198 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39193"] 06-May-2023 05:15:38.200 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 06-May-2023 05:15:38.201 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 06-May-2023 05:15:38.202 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 06-May-2023 05:15:38.203 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 06-May-2023 05:15:38.206 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-May-2023 05:15:38.206 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 06-May-2023 05:15:38.213 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42847"] 06-May-2023 05:15:38.218 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42847"] 06-May-2023 05:15:38.219 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-May-2023 05:15:38.221 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42847"] 06-May-2023 05:15:38.222 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42847"] 06-May-2023 05:15:38.225 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 06-May-2023 05:15:38.226 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 06-May-2023 05:15:38.229 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-May-2023 05:15:38.230 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 06-May-2023 05:15:38.234 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-41679"] 06-May-2023 05:15:38.239 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-41679"] 06-May-2023 05:15:38.241 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-May-2023 05:15:38.242 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-41679"] 06-May-2023 05:15:38.243 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-41679"] 06-May-2023 05:15:38.246 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 06-May-2023 05:15:38.248 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 06-May-2023 05:15:38.256 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-May-2023 05:15:38.256 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 06-May-2023 05:15:38.263 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-36521"] 06-May-2023 05:15:38.270 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-36521"] 06-May-2023 05:15:38.271 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-May-2023 05:15:38.274 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-36521"] 06-May-2023 05:15:38.275 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-36521"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.535 sec Testcase: testUseContentTypeExpiresConfiguration took 0.054 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.429 sec Testcase: testConfiguration took 0.038 sec Testcase: testNullContentType took 0.043 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.009 sec Testcase: testUseDefaultConfiguration1 took 0.044 sec Testcase: testUseDefaultConfiguration2 took 0.04 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.033 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.019 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.023 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.021 sec Testcase: testEmptyContent took 0.031 sec