Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.187 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Wed, 04 Oct 2023 15:14:44 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Wed, 04 Oct 2023 15:17:44 GMT Content-Length: 11 Date: Wed, 04 Oct 2023 15:14:44 GMT Content-Type: text/xml;charset=utf-8 Date: Wed, 04 Oct 2023 15:14:44 GMT Expires: Wed, 04 Oct 2023 15:21:45 GMT Keep-Alive: timeout=3 ETag: W/"971-1696431199108" Connection: keep-alive Cache-Control: max-age=419 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 04 Oct 2023 15:15:45 GMT Content-Length: 0 Date: Wed, 04 Oct 2023 15:14:44 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 04 Oct 2023 15:15:45 GMT Content-Length: 11 Date: Wed, 04 Oct 2023 15:14:44 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Wed, 04 Oct 2023 15:15:45 GMT Content-Length: 11 Date: Wed, 04 Oct 2023 15:14:44 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 04 Oct 2023 15:21:45 GMT Content-Length: 11 Date: Wed, 04 Oct 2023 15:14:44 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, 04 Oct 2023 15:14:44 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Wed, 04 Oct 2023 15:14:45 GMT Content-Length: 11 Date: Wed, 04 Oct 2023 15:14:44 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Wed, 04 Oct 2023 15:19:45 GMT Content-Length: 11 Date: Wed, 04 Oct 2023 15:14:44 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 04 Oct 2023 15:21:45 GMT Content-Length: 0 Date: Wed, 04 Oct 2023 15:14:44 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 04-Oct-2023 15:14:43.788 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 04-Oct-2023 15:14:44.419 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 04-Oct-2023 15:14:44.518 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Oct-2023 15:14:44.518 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 04-Oct-2023 15:14:44.708 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-35075"] 04-Oct-2023 15:14:44.865 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-35075"] 04-Oct-2023 15:14:44.867 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Oct-2023 15:14:44.907 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-35075"] 04-Oct-2023 15:14:44.909 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-35075"] 04-Oct-2023 15:14:44.918 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 04-Oct-2023 15:14:44.920 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 04-Oct-2023 15:14:44.937 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Oct-2023 15:14:44.938 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 04-Oct-2023 15:14:44.962 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-33199"] 04-Oct-2023 15:14:44.975 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-33199"] 04-Oct-2023 15:14:44.976 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Oct-2023 15:14:44.978 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-33199"] 04-Oct-2023 15:14:44.980 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-33199"] 04-Oct-2023 15:14:44.989 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 04-Oct-2023 15:14:44.991 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 04-Oct-2023 15:14:44.993 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 04-Oct-2023 15:14:45.008 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 04-Oct-2023 15:14:45.044 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Oct-2023 15:14:45.044 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 04-Oct-2023 15:14:45.139 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 04-Oct-2023 15:14:45.317 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37765"] 04-Oct-2023 15:14:45.334 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37765"] 04-Oct-2023 15:14:45.335 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Oct-2023 15:14:45.341 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37765"] 04-Oct-2023 15:14:45.343 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37765"] 04-Oct-2023 15:14:45.350 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 04-Oct-2023 15:14:45.355 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 04-Oct-2023 15:14:45.392 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Oct-2023 15:14:45.393 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 04-Oct-2023 15:14:45.398 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43959"] 04-Oct-2023 15:14:45.400 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43959"] 04-Oct-2023 15:14:45.402 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Oct-2023 15:14:45.404 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43959"] 04-Oct-2023 15:14:45.405 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43959"] 04-Oct-2023 15:14:45.411 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 04-Oct-2023 15:14:45.412 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 04-Oct-2023 15:14:45.419 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Oct-2023 15:14:45.420 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 04-Oct-2023 15:14:45.443 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34295"] 04-Oct-2023 15:14:45.449 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34295"] 04-Oct-2023 15:14:45.453 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Oct-2023 15:14:45.455 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34295"] 04-Oct-2023 15:14:45.458 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34295"] 04-Oct-2023 15:14:45.466 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 04-Oct-2023 15:14:45.466 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 04-Oct-2023 15:14:45.467 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 04-Oct-2023 15:14:45.469 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 04-Oct-2023 15:14:45.480 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Oct-2023 15:14:45.480 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 04-Oct-2023 15:14:45.491 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43769"] 04-Oct-2023 15:14:45.508 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43769"] 04-Oct-2023 15:14:45.511 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Oct-2023 15:14:45.513 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43769"] 04-Oct-2023 15:14:45.522 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43769"] 04-Oct-2023 15:14:45.526 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 04-Oct-2023 15:14:45.527 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 04-Oct-2023 15:14:45.539 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Oct-2023 15:14:45.539 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 04-Oct-2023 15:14:45.549 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44877"] 04-Oct-2023 15:14:45.555 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44877"] 04-Oct-2023 15:14:45.557 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Oct-2023 15:14:45.559 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44877"] 04-Oct-2023 15:14:45.560 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44877"] 04-Oct-2023 15:14:45.563 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 04-Oct-2023 15:14:45.565 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 04-Oct-2023 15:14:45.574 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Oct-2023 15:14:45.574 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 04-Oct-2023 15:14:45.595 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38013"] 04-Oct-2023 15:14:45.599 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38013"] 04-Oct-2023 15:14:45.602 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Oct-2023 15:14:45.604 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38013"] 04-Oct-2023 15:14:45.605 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38013"] 04-Oct-2023 15:14:45.608 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 04-Oct-2023 15:14:45.610 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 04-Oct-2023 15:14:45.614 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Oct-2023 15:14:45.614 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 04-Oct-2023 15:14:45.618 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-41951"] 04-Oct-2023 15:14:45.621 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-41951"] 04-Oct-2023 15:14:45.623 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Oct-2023 15:14:45.625 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-41951"] 04-Oct-2023 15:14:45.625 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-41951"] 04-Oct-2023 15:14:45.628 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 04-Oct-2023 15:14:45.628 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 04-Oct-2023 15:14:45.629 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 04-Oct-2023 15:14:45.631 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 04-Oct-2023 15:14:45.632 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Oct-2023 15:14:45.633 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 04-Oct-2023 15:14:45.637 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-34311"] 04-Oct-2023 15:14:45.641 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-34311"] 04-Oct-2023 15:14:45.641 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Oct-2023 15:14:45.643 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-34311"] 04-Oct-2023 15:14:45.643 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-34311"] 04-Oct-2023 15:14:45.646 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 04-Oct-2023 15:14:45.647 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 04-Oct-2023 15:14:45.649 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Oct-2023 15:14:45.649 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 04-Oct-2023 15:14:45.651 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36965"] 04-Oct-2023 15:14:45.654 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36965"] 04-Oct-2023 15:14:45.655 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Oct-2023 15:14:45.656 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36965"] 04-Oct-2023 15:14:45.657 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36965"] 04-Oct-2023 15:14:45.659 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 04-Oct-2023 15:14:45.660 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 04-Oct-2023 15:14:45.662 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Oct-2023 15:14:45.662 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 04-Oct-2023 15:14:45.665 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-37791"] 04-Oct-2023 15:14:45.668 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-37791"] 04-Oct-2023 15:14:45.668 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Oct-2023 15:14:45.670 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-37791"] 04-Oct-2023 15:14:45.671 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-37791"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.345 sec Testcase: testUseContentTypeExpiresConfiguration took 0.07 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.005 sec Testcase: testBug63909 took 0.355 sec Testcase: testConfiguration took 0.06 sec Testcase: testNullContentType took 0.055 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.058 sec Testcase: testUseDefaultConfiguration2 took 0.038 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.045 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.019 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.017 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.013 sec Testcase: testEmptyContent took 0.014 sec