Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.06 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Thu, 12 Oct 2023 12:29:41 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Thu, 12 Oct 2023 12:32:41 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 12:29:41 GMT Content-Type: text/xml;charset=utf-8 Date: Thu, 12 Oct 2023 12:29:41 GMT Expires: Thu, 12 Oct 2023 12:36:41 GMT Keep-Alive: timeout=3 ETag: W/"971-1697112455338" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 12 Oct 2023 12:30:41 GMT Content-Length: 0 Date: Thu, 12 Oct 2023 12:29:41 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 12 Oct 2023 12:30:41 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 12:29: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, 12 Oct 2023 12:30:41 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 12:29:41 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 12 Oct 2023 12:36:41 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 12:29: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, 12 Oct 2023 12:29:41 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Thu, 12 Oct 2023 12:29:42 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 12:29:41 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Thu, 12 Oct 2023 12:34:42 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 12:29:41 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 12 Oct 2023 12:36:42 GMT Content-Length: 0 Date: Thu, 12 Oct 2023 12:29:41 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 12-Oct-2023 12:29:40.295 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 12-Oct-2023 12:29:41.189 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 12-Oct-2023 12:29:41.256 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:29:41.257 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:29:41.429 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36715"] 12-Oct-2023 12:29:41.557 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36715"] 12-Oct-2023 12:29:41.559 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:29:41.584 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36715"] 12-Oct-2023 12:29:41.587 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36715"] 12-Oct-2023 12:29:41.607 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 12-Oct-2023 12:29:41.613 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 12-Oct-2023 12:29:41.622 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:29:41.622 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:29:41.644 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44579"] 12-Oct-2023 12:29:41.664 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44579"] 12-Oct-2023 12:29:41.667 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:29:41.669 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44579"] 12-Oct-2023 12:29:41.670 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44579"] 12-Oct-2023 12:29:41.674 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 12-Oct-2023 12:29:41.675 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 12-Oct-2023 12:29:41.680 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 12-Oct-2023 12:29:41.695 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 12-Oct-2023 12:29:41.709 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:29:41.710 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:29:41.767 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 12-Oct-2023 12:29:41.875 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-44137"] 12-Oct-2023 12:29:41.881 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-44137"] 12-Oct-2023 12:29:41.881 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:29:41.886 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-44137"] 12-Oct-2023 12:29:41.886 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-44137"] 12-Oct-2023 12:29:41.888 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 12-Oct-2023 12:29:41.889 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 12-Oct-2023 12:29:41.891 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:29:41.891 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:29:41.895 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40909"] 12-Oct-2023 12:29:41.895 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40909"] 12-Oct-2023 12:29:41.896 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:29:41.897 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40909"] 12-Oct-2023 12:29:41.898 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40909"] 12-Oct-2023 12:29:41.900 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 12-Oct-2023 12:29:41.901 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 12-Oct-2023 12:29:41.903 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:29:41.903 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:29:41.907 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-32839"] 12-Oct-2023 12:29:41.910 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-32839"] 12-Oct-2023 12:29:41.910 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:29:41.912 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-32839"] 12-Oct-2023 12:29:41.913 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-32839"] 12-Oct-2023 12:29:41.915 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 12-Oct-2023 12:29:41.916 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 12-Oct-2023 12:29:41.917 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 12-Oct-2023 12:29:41.919 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 12-Oct-2023 12:29:41.921 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:29:41.921 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:29:41.925 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-40459"] 12-Oct-2023 12:29:41.931 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-40459"] 12-Oct-2023 12:29:41.932 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:29:41.934 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-40459"] 12-Oct-2023 12:29:41.935 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-40459"] 12-Oct-2023 12:29:41.937 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 12-Oct-2023 12:29:41.939 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 12-Oct-2023 12:29:41.941 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:29:41.941 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:29:41.946 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-35117"] 12-Oct-2023 12:29:41.949 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-35117"] 12-Oct-2023 12:29:41.952 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:29:41.955 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-35117"] 12-Oct-2023 12:29:41.956 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-35117"] 12-Oct-2023 12:29:41.962 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 12-Oct-2023 12:29:41.964 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 12-Oct-2023 12:29:41.971 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:29:41.971 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:29:41.984 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-45185"] 12-Oct-2023 12:29:41.988 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-45185"] 12-Oct-2023 12:29:41.990 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:29:41.992 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-45185"] 12-Oct-2023 12:29:41.993 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-45185"] 12-Oct-2023 12:29:41.996 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 12-Oct-2023 12:29:41.997 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 12-Oct-2023 12:29:42.004 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:29:42.004 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:29:42.012 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-44301"] 12-Oct-2023 12:29:42.015 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-44301"] 12-Oct-2023 12:29:42.016 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:29:42.018 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-44301"] 12-Oct-2023 12:29:42.019 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-44301"] 12-Oct-2023 12:29:42.022 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 12-Oct-2023 12:29:42.023 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 12-Oct-2023 12:29:42.023 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 12-Oct-2023 12:29:42.025 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 12-Oct-2023 12:29:42.033 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:29:42.033 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:29:42.040 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-40347"] 12-Oct-2023 12:29:42.043 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-40347"] 12-Oct-2023 12:29:42.046 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:29:42.049 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-40347"] 12-Oct-2023 12:29:42.049 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-40347"] 12-Oct-2023 12:29:42.052 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 12-Oct-2023 12:29:42.053 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 12-Oct-2023 12:29:42.064 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:29:42.064 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:29:42.069 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-45147"] 12-Oct-2023 12:29:42.075 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-45147"] 12-Oct-2023 12:29:42.076 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:29:42.078 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-45147"] 12-Oct-2023 12:29:42.079 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-45147"] 12-Oct-2023 12:29:42.083 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 12-Oct-2023 12:29:42.085 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 12-Oct-2023 12:29:42.091 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:29:42.091 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:29:42.096 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-42259"] 12-Oct-2023 12:29:42.099 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-42259"] 12-Oct-2023 12:29:42.100 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:29:42.102 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-42259"] 12-Oct-2023 12:29:42.103 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-42259"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.495 sec Testcase: testUseContentTypeExpiresConfiguration took 0.072 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.006 sec Testcase: testBug63909 took 0.208 sec Testcase: testConfiguration took 0.012 sec Testcase: testNullContentType took 0.015 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.02 sec Testcase: testUseDefaultConfiguration2 took 0.024 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.034 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.026 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.028 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.032 sec Testcase: testEmptyContent took 0.022 sec