Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.949 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 20 Feb 2024 17:39:05 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 20 Feb 2024 17:42:05 GMT Content-Length: 11 Date: Tue, 20 Feb 2024 17:39:05 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 20 Feb 2024 17:39:05 GMT Expires: Tue, 20 Feb 2024 17:46:05 GMT Keep-Alive: timeout=3 ETag: W/"971-1708450115425" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=59 Connection: keep-alive Expires: Tue, 20 Feb 2024 17:40:05 GMT Content-Length: 0 Date: Tue, 20 Feb 2024 17:39:05 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 20 Feb 2024 17:40:06 GMT Content-Length: 11 Date: Tue, 20 Feb 2024 17:39:05 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 20 Feb 2024 17:40:06 GMT Content-Length: 11 Date: Tue, 20 Feb 2024 17:39:05 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 20 Feb 2024 17:46:06 GMT Content-Length: 11 Date: Tue, 20 Feb 2024 17:39:05 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: Tue, 20 Feb 2024 17:39:05 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 20 Feb 2024 17:39:06 GMT Content-Length: 11 Date: Tue, 20 Feb 2024 17:39:05 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 20 Feb 2024 17:44:06 GMT Content-Length: 11 Date: Tue, 20 Feb 2024 17:39:05 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 20 Feb 2024 17:46:06 GMT Content-Length: 0 Date: Tue, 20 Feb 2024 17:39:05 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 20-Feb-2024 17:39:03.787 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 20-Feb-2024 17:39:04.761 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 20-Feb-2024 17:39:04.828 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 17:39:04.829 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 17:39:05.052 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-40789"] 20-Feb-2024 17:39:05.205 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-40789"] 20-Feb-2024 17:39:05.207 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 17:39:05.226 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-40789"] 20-Feb-2024 17:39:05.234 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-40789"] 20-Feb-2024 17:39:05.248 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 20-Feb-2024 17:39:05.261 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 20-Feb-2024 17:39:05.263 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 17:39:05.264 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 17:39:05.286 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-33943"] 20-Feb-2024 17:39:05.407 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-33943"] 20-Feb-2024 17:39:05.410 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 17:39:05.412 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-33943"] 20-Feb-2024 17:39:05.418 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-33943"] 20-Feb-2024 17:39:05.424 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 20-Feb-2024 17:39:05.435 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 20-Feb-2024 17:39:05.436 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 20-Feb-2024 17:39:05.467 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 20-Feb-2024 17:39:05.468 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 17:39:05.468 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 17:39:05.582 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 20-Feb-2024 17:39:05.778 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-36703"] 20-Feb-2024 17:39:05.841 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-36703"] 20-Feb-2024 17:39:05.844 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 17:39:05.849 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-36703"] 20-Feb-2024 17:39:05.852 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-36703"] 20-Feb-2024 17:39:05.855 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 20-Feb-2024 17:39:05.860 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 20-Feb-2024 17:39:05.861 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 17:39:05.861 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 17:39:05.867 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-34185"] 20-Feb-2024 17:39:05.877 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-34185"] 20-Feb-2024 17:39:05.877 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 17:39:05.884 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-34185"] 20-Feb-2024 17:39:05.900 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-34185"] 20-Feb-2024 17:39:05.902 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 20-Feb-2024 17:39:05.904 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 20-Feb-2024 17:39:05.905 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 17:39:05.905 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 17:39:05.932 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-46501"] 20-Feb-2024 17:39:05.968 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-46501"] 20-Feb-2024 17:39:05.976 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 17:39:05.984 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-46501"] 20-Feb-2024 17:39:06.000 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-46501"] 20-Feb-2024 17:39:06.002 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 20-Feb-2024 17:39:06.003 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 20-Feb-2024 17:39:06.004 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 20-Feb-2024 17:39:06.006 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 20-Feb-2024 17:39:06.006 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 17:39:06.006 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 17:39:06.011 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-43983"] 20-Feb-2024 17:39:06.093 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-43983"] 20-Feb-2024 17:39:06.095 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 17:39:06.097 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-43983"] 20-Feb-2024 17:39:06.100 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-43983"] 20-Feb-2024 17:39:06.102 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 20-Feb-2024 17:39:06.103 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 20-Feb-2024 17:39:06.104 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 17:39:06.104 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 17:39:06.113 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-33583"] 20-Feb-2024 17:39:06.129 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-33583"] 20-Feb-2024 17:39:06.130 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 17:39:06.132 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-33583"] 20-Feb-2024 17:39:06.137 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-33583"] 20-Feb-2024 17:39:06.142 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 20-Feb-2024 17:39:06.144 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 20-Feb-2024 17:39:06.144 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 17:39:06.144 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 17:39:06.167 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-38173"] 20-Feb-2024 17:39:06.187 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-38173"] 20-Feb-2024 17:39:06.189 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 17:39:06.192 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-38173"] 20-Feb-2024 17:39:06.194 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-38173"] 20-Feb-2024 17:39:06.197 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 20-Feb-2024 17:39:06.199 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 20-Feb-2024 17:39:06.200 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 17:39:06.200 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 17:39:06.208 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-39961"] 20-Feb-2024 17:39:06.267 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-39961"] 20-Feb-2024 17:39:06.270 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 17:39:06.275 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-39961"] 20-Feb-2024 17:39:06.279 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-39961"] 20-Feb-2024 17:39:06.283 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 20-Feb-2024 17:39:06.285 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 20-Feb-2024 17:39:06.287 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 20-Feb-2024 17:39:06.289 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 20-Feb-2024 17:39:06.290 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 17:39:06.290 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 17:39:06.296 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-34101"] 20-Feb-2024 17:39:06.312 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-34101"] 20-Feb-2024 17:39:06.315 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 17:39:06.316 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-34101"] 20-Feb-2024 17:39:06.321 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-34101"] 20-Feb-2024 17:39:06.324 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 20-Feb-2024 17:39:06.326 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 20-Feb-2024 17:39:06.327 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 17:39:06.327 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 17:39:06.336 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-38289"] 20-Feb-2024 17:39:06.353 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-38289"] 20-Feb-2024 17:39:06.356 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 17:39:06.358 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-38289"] 20-Feb-2024 17:39:06.363 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-38289"] 20-Feb-2024 17:39:06.364 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 20-Feb-2024 17:39:06.368 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 20-Feb-2024 17:39:06.369 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 17:39:06.369 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 17:39:06.378 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-35215"] 20-Feb-2024 17:39:06.400 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-35215"] 20-Feb-2024 17:39:06.403 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 17:39:06.404 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-35215"] 20-Feb-2024 17:39:06.406 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-35215"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.71 sec Testcase: testUseContentTypeExpiresConfiguration took 0.176 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.012 sec Testcase: testBug63909 took 0.418 sec Testcase: testConfiguration took 0.049 sec Testcase: testNullContentType took 0.099 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.097 sec Testcase: testUseDefaultConfiguration2 took 0.037 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.057 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.087 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.037 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.042 sec Testcase: testEmptyContent took 0.043 sec