Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.45 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Thu, 02 May 2024 13:05:39 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Thu, 02 May 2024 13:08:40 GMT Content-Length: 11 Date: Thu, 02 May 2024 13:05:40 GMT Content-Type: text/xml;charset=utf-8 Date: Thu, 02 May 2024 13:05:40 GMT Expires: Thu, 02 May 2024 13:12:40 GMT Keep-Alive: timeout=3 ETag: W/"971-1714654351506" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 02 May 2024 13:06:41 GMT Content-Length: 0 Date: Thu, 02 May 2024 13:05:40 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 02 May 2024 13:06:41 GMT Content-Length: 11 Date: Thu, 02 May 2024 13:05:41 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Thu, 02 May 2024 13:06:41 GMT Content-Length: 11 Date: Thu, 02 May 2024 13:05:41 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 02 May 2024 13:12:41 GMT Content-Length: 11 Date: Thu, 02 May 2024 13:05:41 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: Thu, 02 May 2024 13:05:41 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Thu, 02 May 2024 13:05:41 GMT Content-Length: 11 Date: Thu, 02 May 2024 13:05:41 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Thu, 02 May 2024 13:10:41 GMT Content-Length: 11 Date: Thu, 02 May 2024 13:05:41 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 02 May 2024 13:12:41 GMT Content-Length: 0 Date: Thu, 02 May 2024 13:05:41 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 02-May-2024 13:05:38.346 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 02-May-2024 13:05:39.428 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 02-May-2024 13:05:39.500 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:05:39.505 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:05:39.724 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-35295"] 02-May-2024 13:05:39.939 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-35295"] 02-May-2024 13:05:39.949 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:05:39.984 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-35295"] 02-May-2024 13:05:39.998 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-35295"] 02-May-2024 13:05:40.009 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 02-May-2024 13:05:40.012 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 02-May-2024 13:05:40.012 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:05:40.013 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:05:40.039 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-45761"] 02-May-2024 13:05:40.154 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-45761"] 02-May-2024 13:05:40.157 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:05:40.165 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-45761"] 02-May-2024 13:05:40.170 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-45761"] 02-May-2024 13:05:40.173 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 02-May-2024 13:05:40.175 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 02-May-2024 13:05:40.176 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 02-May-2024 13:05:40.189 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 02-May-2024 13:05:40.197 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:05:40.198 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:05:40.373 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 02-May-2024 13:05:40.716 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-35195"] 02-May-2024 13:05:40.869 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-35195"] 02-May-2024 13:05:40.870 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:05:40.886 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-35195"] 02-May-2024 13:05:40.903 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-35195"] 02-May-2024 13:05:40.908 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 02-May-2024 13:05:40.910 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 02-May-2024 13:05:40.911 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:05:40.912 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:05:40.934 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-37765"] 02-May-2024 13:05:41.027 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-37765"] 02-May-2024 13:05:41.027 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:05:41.038 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-37765"] 02-May-2024 13:05:41.040 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-37765"] 02-May-2024 13:05:41.043 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 02-May-2024 13:05:41.047 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 02-May-2024 13:05:41.048 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:05:41.049 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:05:41.077 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-40445"] 02-May-2024 13:05:41.127 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-40445"] 02-May-2024 13:05:41.128 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:05:41.132 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-40445"] 02-May-2024 13:05:41.135 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-40445"] 02-May-2024 13:05:41.140 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 02-May-2024 13:05:41.142 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 02-May-2024 13:05:41.144 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 02-May-2024 13:05:41.146 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 02-May-2024 13:05:41.147 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:05:41.149 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:05:41.168 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-35229"] 02-May-2024 13:05:41.202 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-35229"] 02-May-2024 13:05:41.204 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:05:41.209 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-35229"] 02-May-2024 13:05:41.213 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-35229"] 02-May-2024 13:05:41.215 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 02-May-2024 13:05:41.220 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 02-May-2024 13:05:41.221 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:05:41.221 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:05:41.225 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-44863"] 02-May-2024 13:05:41.239 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-44863"] 02-May-2024 13:05:41.240 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:05:41.243 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-44863"] 02-May-2024 13:05:41.245 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-44863"] 02-May-2024 13:05:41.246 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 02-May-2024 13:05:41.248 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 02-May-2024 13:05:41.248 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:05:41.249 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:05:41.264 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-37325"] 02-May-2024 13:05:41.295 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-37325"] 02-May-2024 13:05:41.297 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:05:41.300 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-37325"] 02-May-2024 13:05:41.303 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-37325"] 02-May-2024 13:05:41.311 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 02-May-2024 13:05:41.313 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 02-May-2024 13:05:41.313 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:05:41.314 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:05:41.331 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-36279"] 02-May-2024 13:05:41.349 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-36279"] 02-May-2024 13:05:41.352 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:05:41.354 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-36279"] 02-May-2024 13:05:41.358 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-36279"] 02-May-2024 13:05:41.361 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 02-May-2024 13:05:41.362 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 02-May-2024 13:05:41.363 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 02-May-2024 13:05:41.368 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 02-May-2024 13:05:41.369 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:05:41.369 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:05:41.376 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-40429"] 02-May-2024 13:05:41.383 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-40429"] 02-May-2024 13:05:41.386 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:05:41.395 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-40429"] 02-May-2024 13:05:41.401 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-40429"] 02-May-2024 13:05:41.403 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 02-May-2024 13:05:41.408 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 02-May-2024 13:05:41.409 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:05:41.409 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:05:41.415 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-36831"] 02-May-2024 13:05:41.425 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-36831"] 02-May-2024 13:05:41.427 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:05:41.436 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-36831"] 02-May-2024 13:05:41.446 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-36831"] 02-May-2024 13:05:41.448 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 02-May-2024 13:05:41.454 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 02-May-2024 13:05:41.468 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-May-2024 13:05:41.471 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0-M20-dev] 02-May-2024 13:05:41.483 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-40463"] 02-May-2024 13:05:41.501 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-40463"] 02-May-2024 13:05:41.506 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-May-2024 13:05:41.510 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-40463"] 02-May-2024 13:05:41.513 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-40463"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.862 sec Testcase: testUseContentTypeExpiresConfiguration took 0.163 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.003 sec Testcase: testBug63909 took 0.731 sec Testcase: testConfiguration took 0.135 sec Testcase: testNullContentType took 0.094 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.006 sec Testcase: testUseDefaultConfiguration1 took 0.07 sec Testcase: testUseDefaultConfiguration2 took 0.032 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.065 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.049 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.04 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.044 sec Testcase: testEmptyContent took 0.067 sec