Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.659 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Mon, 02 Oct 2023 10:04:57 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Mon, 02 Oct 2023 10:07:57 GMT Content-Length: 11 Date: Mon, 02 Oct 2023 10:04:57 GMT Content-Type: text/xml;charset=utf-8 Date: Mon, 02 Oct 2023 10:04:57 GMT Expires: Mon, 02 Oct 2023 10:11:57 GMT Keep-Alive: timeout=3 ETag: W/"971-1696240499465" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 02 Oct 2023 10:05:58 GMT Content-Length: 0 Date: Mon, 02 Oct 2023 10:04:57 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 02 Oct 2023 10:05:58 GMT Content-Length: 11 Date: Mon, 02 Oct 2023 10:04:57 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Mon, 02 Oct 2023 10:05:58 GMT Content-Length: 11 Date: Mon, 02 Oct 2023 10:04:57 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 02 Oct 2023 10:11:58 GMT Content-Length: 11 Date: Mon, 02 Oct 2023 10:04:57 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: Mon, 02 Oct 2023 10:04:57 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Mon, 02 Oct 2023 10:04:58 GMT Content-Length: 11 Date: Mon, 02 Oct 2023 10:04:57 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Mon, 02 Oct 2023 10:09:58 GMT Content-Length: 11 Date: Mon, 02 Oct 2023 10:04:57 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 02 Oct 2023 10:11:58 GMT Content-Length: 0 Date: Mon, 02 Oct 2023 10:04:57 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 02-Oct-2023 10:04:56.052 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 02-Oct-2023 10:04:56.983 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 02-Oct-2023 10:04:57.029 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 10:04:57.029 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 10:04:57.214 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-39685"] 02-Oct-2023 10:04:57.382 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-39685"] 02-Oct-2023 10:04:57.384 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 10:04:57.410 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-39685"] 02-Oct-2023 10:04:57.424 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-39685"] 02-Oct-2023 10:04:57.469 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 02-Oct-2023 10:04:57.495 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 02-Oct-2023 10:04:57.496 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 10:04:57.496 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 10:04:57.520 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-34193"] 02-Oct-2023 10:04:57.627 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-34193"] 02-Oct-2023 10:04:57.630 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 10:04:57.634 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-34193"] 02-Oct-2023 10:04:57.640 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-34193"] 02-Oct-2023 10:04:57.661 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 02-Oct-2023 10:04:57.662 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 02-Oct-2023 10:04:57.663 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 02-Oct-2023 10:04:57.673 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 02-Oct-2023 10:04:57.674 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 10:04:57.675 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 10:04:57.746 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 02-Oct-2023 10:04:57.930 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-37759"] 02-Oct-2023 10:04:57.968 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-37759"] 02-Oct-2023 10:04:57.970 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 10:04:57.975 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-37759"] 02-Oct-2023 10:04:57.978 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-37759"] 02-Oct-2023 10:04:57.981 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 02-Oct-2023 10:04:57.984 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 02-Oct-2023 10:04:57.985 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 10:04:57.985 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 10:04:57.989 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-43477"] 02-Oct-2023 10:04:57.995 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-43477"] 02-Oct-2023 10:04:57.996 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 10:04:57.999 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-43477"] 02-Oct-2023 10:04:58.005 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-43477"] 02-Oct-2023 10:04:58.007 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 02-Oct-2023 10:04:58.009 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 02-Oct-2023 10:04:58.009 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 10:04:58.010 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 10:04:58.015 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-41389"] 02-Oct-2023 10:04:58.025 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-41389"] 02-Oct-2023 10:04:58.028 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 10:04:58.030 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-41389"] 02-Oct-2023 10:04:58.034 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-41389"] 02-Oct-2023 10:04:58.036 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 02-Oct-2023 10:04:58.037 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 02-Oct-2023 10:04:58.038 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 02-Oct-2023 10:04:58.040 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 02-Oct-2023 10:04:58.041 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 10:04:58.042 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 10:04:58.047 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-46653"] 02-Oct-2023 10:04:58.059 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-46653"] 02-Oct-2023 10:04:58.060 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 10:04:58.067 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-46653"] 02-Oct-2023 10:04:58.070 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-46653"] 02-Oct-2023 10:04:58.072 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 02-Oct-2023 10:04:58.074 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 02-Oct-2023 10:04:58.075 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 10:04:58.075 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 10:04:58.089 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-43207"] 02-Oct-2023 10:04:58.103 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-43207"] 02-Oct-2023 10:04:58.106 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 10:04:58.109 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-43207"] 02-Oct-2023 10:04:58.118 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-43207"] 02-Oct-2023 10:04:58.119 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 02-Oct-2023 10:04:58.121 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 02-Oct-2023 10:04:58.122 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 10:04:58.122 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 10:04:58.127 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-41751"] 02-Oct-2023 10:04:58.140 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-41751"] 02-Oct-2023 10:04:58.140 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 10:04:58.142 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-41751"] 02-Oct-2023 10:04:58.146 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-41751"] 02-Oct-2023 10:04:58.147 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 02-Oct-2023 10:04:58.149 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 02-Oct-2023 10:04:58.149 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 10:04:58.149 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 10:04:58.154 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-39383"] 02-Oct-2023 10:04:58.160 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-39383"] 02-Oct-2023 10:04:58.164 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 10:04:58.166 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-39383"] 02-Oct-2023 10:04:58.168 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-39383"] 02-Oct-2023 10:04:58.172 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 02-Oct-2023 10:04:58.172 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 02-Oct-2023 10:04:58.173 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 02-Oct-2023 10:04:58.175 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 02-Oct-2023 10:04:58.175 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 10:04:58.175 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 10:04:58.180 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-33447"] 02-Oct-2023 10:04:58.190 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-33447"] 02-Oct-2023 10:04:58.191 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 10:04:58.196 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-33447"] 02-Oct-2023 10:04:58.198 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-33447"] 02-Oct-2023 10:04:58.200 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 02-Oct-2023 10:04:58.201 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 02-Oct-2023 10:04:58.201 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 10:04:58.201 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 10:04:58.213 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-45385"] 02-Oct-2023 10:04:58.227 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-45385"] 02-Oct-2023 10:04:58.235 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 10:04:58.237 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-45385"] 02-Oct-2023 10:04:58.240 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-45385"] 02-Oct-2023 10:04:58.241 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 02-Oct-2023 10:04:58.243 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 02-Oct-2023 10:04:58.244 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 10:04:58.244 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 10:04:58.251 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-41151"] 02-Oct-2023 10:04:58.260 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-41151"] 02-Oct-2023 10:04:58.260 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 10:04:58.262 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-41151"] 02-Oct-2023 10:04:58.265 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-41151"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.754 sec Testcase: testUseContentTypeExpiresConfiguration took 0.19 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.004 sec Testcase: testBug63909 took 0.318 sec Testcase: testConfiguration took 0.025 sec Testcase: testNullContentType took 0.029 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.033 sec Testcase: testUseDefaultConfiguration2 took 0.046 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.027 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.024 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.026 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.042 sec Testcase: testEmptyContent took 0.025 sec