Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.928 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Sun, 04 Feb 2024 18:37:43 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Sun, 04 Feb 2024 18:40:43 GMT Content-Length: 11 Date: Sun, 04 Feb 2024 18:37:43 GMT Content-Type: text/xml;charset=utf-8 Date: Sun, 04 Feb 2024 18:37:43 GMT Expires: Sun, 04 Feb 2024 18:44:44 GMT Keep-Alive: timeout=3 ETag: W/"971-1707071217780" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Sun, 04 Feb 2024 18:38:44 GMT Content-Length: 0 Date: Sun, 04 Feb 2024 18:37:43 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Sun, 04 Feb 2024 18:38:44 GMT Content-Length: 11 Date: Sun, 04 Feb 2024 18:37:43 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Sun, 04 Feb 2024 18:38:44 GMT Content-Length: 11 Date: Sun, 04 Feb 2024 18:37:43 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Sun, 04 Feb 2024 18:44:44 GMT Content-Length: 11 Date: Sun, 04 Feb 2024 18:37:43 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: Sun, 04 Feb 2024 18:37:43 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Sun, 04 Feb 2024 18:37:44 GMT Content-Length: 11 Date: Sun, 04 Feb 2024 18:37:43 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Sun, 04 Feb 2024 18:42:44 GMT Content-Length: 11 Date: Sun, 04 Feb 2024 18:37:43 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Sun, 04 Feb 2024 18:44:44 GMT Content-Length: 0 Date: Sun, 04 Feb 2024 18:37:43 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 04-Feb-2024 18:37:42.532 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 04-Feb-2024 18:37:43.485 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 04-Feb-2024 18:37:43.550 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 18:37:43.551 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 04-Feb-2024 18:37:43.778 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-44623"] 04-Feb-2024 18:37:43.899 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-44623"] 04-Feb-2024 18:37:43.904 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 18:37:43.936 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-44623"] 04-Feb-2024 18:37:43.949 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-44623"] 04-Feb-2024 18:37:43.956 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 04-Feb-2024 18:37:43.967 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 04-Feb-2024 18:37:43.970 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 18:37:43.970 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 04-Feb-2024 18:37:43.980 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-42891"] 04-Feb-2024 18:37:44.008 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-42891"] 04-Feb-2024 18:37:44.012 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 18:37:44.014 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-42891"] 04-Feb-2024 18:37:44.021 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-42891"] 04-Feb-2024 18:37:44.025 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 04-Feb-2024 18:37:44.027 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 04-Feb-2024 18:37:44.029 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 04-Feb-2024 18:37:44.042 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 04-Feb-2024 18:37:44.044 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 18:37:44.044 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 04-Feb-2024 18:37:44.157 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 04-Feb-2024 18:37:44.361 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-39409"] 04-Feb-2024 18:37:44.413 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-39409"] 04-Feb-2024 18:37:44.416 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 18:37:44.421 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-39409"] 04-Feb-2024 18:37:44.438 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-39409"] 04-Feb-2024 18:37:44.440 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 04-Feb-2024 18:37:44.441 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 04-Feb-2024 18:37:44.442 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 18:37:44.442 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 04-Feb-2024 18:37:44.450 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-45393"] 04-Feb-2024 18:37:44.453 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-45393"] 04-Feb-2024 18:37:44.453 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 18:37:44.455 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-45393"] 04-Feb-2024 18:37:44.456 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-45393"] 04-Feb-2024 18:37:44.457 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 04-Feb-2024 18:37:44.459 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 04-Feb-2024 18:37:44.459 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 18:37:44.460 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 04-Feb-2024 18:37:44.471 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-33031"] 04-Feb-2024 18:37:44.488 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-33031"] 04-Feb-2024 18:37:44.489 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 18:37:44.491 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-33031"] 04-Feb-2024 18:37:44.494 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-33031"] 04-Feb-2024 18:37:44.498 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 04-Feb-2024 18:37:44.499 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 04-Feb-2024 18:37:44.500 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 04-Feb-2024 18:37:44.502 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 04-Feb-2024 18:37:44.503 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 18:37:44.503 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 04-Feb-2024 18:37:44.514 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-42241"] 04-Feb-2024 18:37:44.530 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-42241"] 04-Feb-2024 18:37:44.531 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 18:37:44.532 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-42241"] 04-Feb-2024 18:37:44.553 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-42241"] 04-Feb-2024 18:37:44.555 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 04-Feb-2024 18:37:44.559 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 04-Feb-2024 18:37:44.559 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 18:37:44.560 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 04-Feb-2024 18:37:44.565 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-43225"] 04-Feb-2024 18:37:44.606 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-43225"] 04-Feb-2024 18:37:44.607 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 18:37:44.609 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-43225"] 04-Feb-2024 18:37:44.624 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-43225"] 04-Feb-2024 18:37:44.625 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 04-Feb-2024 18:37:44.627 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 04-Feb-2024 18:37:44.628 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 18:37:44.628 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 04-Feb-2024 18:37:44.640 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-32893"] 04-Feb-2024 18:37:44.714 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-32893"] 04-Feb-2024 18:37:44.717 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 18:37:44.719 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-32893"] 04-Feb-2024 18:37:44.721 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-32893"] 04-Feb-2024 18:37:44.723 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 04-Feb-2024 18:37:44.725 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 04-Feb-2024 18:37:44.726 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 18:37:44.726 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 04-Feb-2024 18:37:44.735 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-33213"] 04-Feb-2024 18:37:44.821 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-33213"] 04-Feb-2024 18:37:44.821 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 18:37:44.823 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-33213"] 04-Feb-2024 18:37:44.828 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-33213"] 04-Feb-2024 18:37:44.829 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 04-Feb-2024 18:37:44.830 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 04-Feb-2024 18:37:44.831 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 04-Feb-2024 18:37:44.842 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 04-Feb-2024 18:37:44.843 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 18:37:44.843 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 04-Feb-2024 18:37:44.851 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-37805"] 04-Feb-2024 18:37:44.880 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-37805"] 04-Feb-2024 18:37:44.889 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 18:37:44.891 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-37805"] 04-Feb-2024 18:37:44.901 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-37805"] 04-Feb-2024 18:37:44.902 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 04-Feb-2024 18:37:44.904 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 04-Feb-2024 18:37:44.904 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 18:37:44.905 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 04-Feb-2024 18:37:44.913 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-36819"] 04-Feb-2024 18:37:44.928 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-36819"] 04-Feb-2024 18:37:44.938 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 18:37:44.939 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-36819"] 04-Feb-2024 18:37:44.945 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-36819"] 04-Feb-2024 18:37:44.947 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 04-Feb-2024 18:37:44.949 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 04-Feb-2024 18:37:44.949 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 04-Feb-2024 18:37:44.949 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 04-Feb-2024 18:37:44.958 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-42515"] 04-Feb-2024 18:37:44.967 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-42515"] 04-Feb-2024 18:37:44.967 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 04-Feb-2024 18:37:44.969 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-42515"] 04-Feb-2024 18:37:44.972 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-42515"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.817 sec Testcase: testUseContentTypeExpiresConfiguration took 0.067 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.006 sec Testcase: testBug63909 took 0.41 sec Testcase: testConfiguration took 0.018 sec Testcase: testNullContentType took 0.038 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.005 sec Testcase: testUseDefaultConfiguration1 took 0.054 sec Testcase: testUseDefaultConfiguration2 took 0.07 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.097 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.106 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.072 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.045 sec Testcase: testEmptyContent took 0.029 sec