Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.01 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Wed, 01 May 2024 18:00:18 GMT Keep-Alive: timeout=3 Cache-Control: max-age=179 Connection: keep-alive Expires: Wed, 01 May 2024 18:03:18 GMT Content-Length: 11 Date: Wed, 01 May 2024 18:00:18 GMT Content-Type: text/xml;charset=utf-8 Date: Wed, 01 May 2024 18:00:18 GMT Expires: Wed, 01 May 2024 18:07:19 GMT Keep-Alive: timeout=3 ETag: W/"971-1714585117783" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 01 May 2024 18:01:19 GMT Content-Length: 0 Date: Wed, 01 May 2024 18:00:18 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 01 May 2024 18:01:19 GMT Content-Length: 11 Date: Wed, 01 May 2024 18:00:18 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Wed, 01 May 2024 18:01:19 GMT Content-Length: 11 Date: Wed, 01 May 2024 18:00:18 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 01 May 2024 18:07:19 GMT Content-Length: 11 Date: Wed, 01 May 2024 18:00:18 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: Wed, 01 May 2024 18:00:18 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Wed, 01 May 2024 18:00:19 GMT Content-Length: 11 Date: Wed, 01 May 2024 18:00:18 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Wed, 01 May 2024 18:05:19 GMT Content-Length: 11 Date: Wed, 01 May 2024 18:00:18 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 01 May 2024 18:07:19 GMT Content-Length: 0 Date: Wed, 01 May 2024 18:00:18 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 01-May-2024 18:00:17.273 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 01-May-2024 18:00:18.052 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 01-May-2024 18:00:18.261 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 01-May-2024 18:00:18.262 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.89-dev] 01-May-2024 18:00:18.509 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-43361"] 01-May-2024 18:00:18.724 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-43361"] 01-May-2024 18:00:18.729 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 01-May-2024 18:00:18.759 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-43361"] 01-May-2024 18:00:18.769 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-43361"] 01-May-2024 18:00:18.788 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 01-May-2024 18:00:18.803 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 01-May-2024 18:00:18.906 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 01-May-2024 18:00:18.906 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.89-dev] 01-May-2024 18:00:18.914 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42603"] 01-May-2024 18:00:18.924 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42603"] 01-May-2024 18:00:18.927 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 01-May-2024 18:00:18.929 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42603"] 01-May-2024 18:00:18.930 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42603"] 01-May-2024 18:00:18.933 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 01-May-2024 18:00:18.935 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 01-May-2024 18:00:18.935 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 01-May-2024 18:00:18.952 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 01-May-2024 18:00:18.960 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 01-May-2024 18:00:18.960 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.89-dev] 01-May-2024 18:00:19.030 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 01-May-2024 18:00:19.214 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43511"] 01-May-2024 18:00:19.229 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43511"] 01-May-2024 18:00:19.230 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 01-May-2024 18:00:19.238 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43511"] 01-May-2024 18:00:19.239 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43511"] 01-May-2024 18:00:19.247 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 01-May-2024 18:00:19.250 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 01-May-2024 18:00:19.272 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 01-May-2024 18:00:19.277 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.89-dev] 01-May-2024 18:00:19.283 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-36157"] 01-May-2024 18:00:19.285 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-36157"] 01-May-2024 18:00:19.287 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 01-May-2024 18:00:19.289 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-36157"] 01-May-2024 18:00:19.291 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-36157"] 01-May-2024 18:00:19.295 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 01-May-2024 18:00:19.297 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 01-May-2024 18:00:19.304 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 01-May-2024 18:00:19.305 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.89-dev] 01-May-2024 18:00:19.318 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-39367"] 01-May-2024 18:00:19.323 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-39367"] 01-May-2024 18:00:19.324 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 01-May-2024 18:00:19.325 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-39367"] 01-May-2024 18:00:19.326 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-39367"] 01-May-2024 18:00:19.330 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 01-May-2024 18:00:19.331 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 01-May-2024 18:00:19.332 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 01-May-2024 18:00:19.333 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 01-May-2024 18:00:19.408 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 01-May-2024 18:00:19.408 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.89-dev] 01-May-2024 18:00:19.426 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-37933"] 01-May-2024 18:00:19.440 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-37933"] 01-May-2024 18:00:19.442 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 01-May-2024 18:00:19.444 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-37933"] 01-May-2024 18:00:19.444 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-37933"] 01-May-2024 18:00:19.450 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 01-May-2024 18:00:19.452 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 01-May-2024 18:00:19.464 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 01-May-2024 18:00:19.464 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.89-dev] 01-May-2024 18:00:19.470 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-46367"] 01-May-2024 18:00:19.476 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-46367"] 01-May-2024 18:00:19.479 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 01-May-2024 18:00:19.481 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-46367"] 01-May-2024 18:00:19.481 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-46367"] 01-May-2024 18:00:19.487 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 01-May-2024 18:00:19.489 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 01-May-2024 18:00:19.500 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 01-May-2024 18:00:19.500 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.89-dev] 01-May-2024 18:00:19.514 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-43129"] 01-May-2024 18:00:19.519 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-43129"] 01-May-2024 18:00:19.523 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 01-May-2024 18:00:19.525 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-43129"] 01-May-2024 18:00:19.526 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-43129"] 01-May-2024 18:00:19.528 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 01-May-2024 18:00:19.530 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 01-May-2024 18:00:19.572 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 01-May-2024 18:00:19.572 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.89-dev] 01-May-2024 18:00:19.577 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-34583"] 01-May-2024 18:00:19.586 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-34583"] 01-May-2024 18:00:19.587 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 01-May-2024 18:00:19.593 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-34583"] 01-May-2024 18:00:19.594 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-34583"] 01-May-2024 18:00:19.599 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 01-May-2024 18:00:19.600 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 01-May-2024 18:00:19.603 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 01-May-2024 18:00:19.605 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 01-May-2024 18:00:19.624 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 01-May-2024 18:00:19.624 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.89-dev] 01-May-2024 18:00:19.640 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-45815"] 01-May-2024 18:00:19.644 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-45815"] 01-May-2024 18:00:19.648 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 01-May-2024 18:00:19.651 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-45815"] 01-May-2024 18:00:19.652 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-45815"] 01-May-2024 18:00:19.656 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 01-May-2024 18:00:19.661 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 01-May-2024 18:00:19.674 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 01-May-2024 18:00:19.674 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.89-dev] 01-May-2024 18:00:19.683 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36509"] 01-May-2024 18:00:19.688 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36509"] 01-May-2024 18:00:19.691 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 01-May-2024 18:00:19.694 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36509"] 01-May-2024 18:00:19.694 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36509"] 01-May-2024 18:00:19.698 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 01-May-2024 18:00:19.699 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 01-May-2024 18:00:19.708 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 01-May-2024 18:00:19.708 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.89-dev] 01-May-2024 18:00:19.712 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-44773"] 01-May-2024 18:00:19.717 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-44773"] 01-May-2024 18:00:19.721 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 01-May-2024 18:00:19.722 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-44773"] 01-May-2024 18:00:19.725 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-44773"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.97 sec Testcase: testUseContentTypeExpiresConfiguration took 0.146 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.312 sec Testcase: testConfiguration took 0.047 sec Testcase: testNullContentType took 0.034 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.118 sec Testcase: testUseDefaultConfiguration2 took 0.037 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.041 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.07 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.055 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.041 sec Testcase: testEmptyContent took 0.032 sec