Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.115 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Mon, 02 Oct 2023 14:59:01 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Mon, 02 Oct 2023 15:02:01 GMT Content-Length: 11 Date: Mon, 02 Oct 2023 14:59:01 GMT Content-Type: text/xml;charset=utf-8 Date: Mon, 02 Oct 2023 14:59:01 GMT Expires: Mon, 02 Oct 2023 15:06:02 GMT Keep-Alive: timeout=3 ETag: W/"971-1696258159045" 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 15:00:02 GMT Content-Length: 0 Date: Mon, 02 Oct 2023 14:59:01 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 02 Oct 2023 15:00:02 GMT Content-Length: 11 Date: Mon, 02 Oct 2023 14:59:01 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 15:00:02 GMT Content-Length: 11 Date: Mon, 02 Oct 2023 14:59:01 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 15:06:02 GMT Content-Length: 11 Date: Mon, 02 Oct 2023 14:59:01 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 14:59:01 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Mon, 02 Oct 2023 14:59:02 GMT Content-Length: 11 Date: Mon, 02 Oct 2023 14:59:01 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 15:04:02 GMT Content-Length: 11 Date: Mon, 02 Oct 2023 14:59:01 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 15:06:02 GMT Content-Length: 0 Date: Mon, 02 Oct 2023 14:59:01 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 02-Oct-2023 14:59:00.661 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 02-Oct-2023 14:59:01.352 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 02-Oct-2023 14:59:01.410 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 14:59:01.412 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 14:59:01.560 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-46343"] 02-Oct-2023 14:59:01.742 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-46343"] 02-Oct-2023 14:59:01.746 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 14:59:01.772 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-46343"] 02-Oct-2023 14:59:01.780 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-46343"] 02-Oct-2023 14:59:01.796 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 02-Oct-2023 14:59:01.798 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 02-Oct-2023 14:59:01.799 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 14:59:01.799 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 14:59:01.816 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-46231"] 02-Oct-2023 14:59:01.879 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-46231"] 02-Oct-2023 14:59:01.887 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 14:59:01.890 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-46231"] 02-Oct-2023 14:59:01.897 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-46231"] 02-Oct-2023 14:59:01.899 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 02-Oct-2023 14:59:01.900 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 02-Oct-2023 14:59:01.901 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 02-Oct-2023 14:59:01.909 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 02-Oct-2023 14:59:01.912 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 14:59:01.912 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 14:59:01.991 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 02-Oct-2023 14:59:02.206 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-44129"] 02-Oct-2023 14:59:02.231 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-44129"] 02-Oct-2023 14:59:02.236 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 14:59:02.251 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-44129"] 02-Oct-2023 14:59:02.258 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-44129"] 02-Oct-2023 14:59:02.260 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 02-Oct-2023 14:59:02.262 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 02-Oct-2023 14:59:02.262 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 14:59:02.263 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 14:59:02.267 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-40753"] 02-Oct-2023 14:59:02.270 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-40753"] 02-Oct-2023 14:59:02.272 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 14:59:02.274 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-40753"] 02-Oct-2023 14:59:02.276 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-40753"] 02-Oct-2023 14:59:02.277 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 02-Oct-2023 14:59:02.279 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 02-Oct-2023 14:59:02.279 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 14:59:02.279 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 14:59:02.283 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-46025"] 02-Oct-2023 14:59:02.288 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-46025"] 02-Oct-2023 14:59:02.291 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 14:59:02.293 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-46025"] 02-Oct-2023 14:59:02.296 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-46025"] 02-Oct-2023 14:59:02.298 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 02-Oct-2023 14:59:02.299 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 02-Oct-2023 14:59:02.300 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 02-Oct-2023 14:59:02.301 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 02-Oct-2023 14:59:02.302 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 14:59:02.303 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 14:59:02.307 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-37827"] 02-Oct-2023 14:59:02.329 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-37827"] 02-Oct-2023 14:59:02.332 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 14:59:02.334 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-37827"] 02-Oct-2023 14:59:02.336 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-37827"] 02-Oct-2023 14:59:02.337 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 02-Oct-2023 14:59:02.340 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 02-Oct-2023 14:59:02.340 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 14:59:02.340 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 14:59:02.345 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-42021"] 02-Oct-2023 14:59:02.356 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-42021"] 02-Oct-2023 14:59:02.359 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 14:59:02.361 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-42021"] 02-Oct-2023 14:59:02.363 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-42021"] 02-Oct-2023 14:59:02.364 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 02-Oct-2023 14:59:02.366 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 02-Oct-2023 14:59:02.367 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 14:59:02.367 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 14:59:02.372 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-46383"] 02-Oct-2023 14:59:02.383 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-46383"] 02-Oct-2023 14:59:02.385 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 14:59:02.387 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-46383"] 02-Oct-2023 14:59:02.391 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-46383"] 02-Oct-2023 14:59:02.393 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 02-Oct-2023 14:59:02.395 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 02-Oct-2023 14:59:02.395 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 14:59:02.395 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 14:59:02.400 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-39951"] 02-Oct-2023 14:59:02.411 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-39951"] 02-Oct-2023 14:59:02.413 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 14:59:02.416 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-39951"] 02-Oct-2023 14:59:02.417 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-39951"] 02-Oct-2023 14:59:02.419 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 02-Oct-2023 14:59:02.420 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 02-Oct-2023 14:59:02.421 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 02-Oct-2023 14:59:02.423 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 02-Oct-2023 14:59:02.423 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 14:59:02.424 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 14:59:02.428 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-44349"] 02-Oct-2023 14:59:02.435 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-44349"] 02-Oct-2023 14:59:02.438 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 14:59:02.440 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-44349"] 02-Oct-2023 14:59:02.443 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-44349"] 02-Oct-2023 14:59:02.445 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 02-Oct-2023 14:59:02.446 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 02-Oct-2023 14:59:02.447 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 14:59:02.447 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 14:59:02.452 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-41615"] 02-Oct-2023 14:59:02.464 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-41615"] 02-Oct-2023 14:59:02.467 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 14:59:02.469 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-41615"] 02-Oct-2023 14:59:02.473 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-41615"] 02-Oct-2023 14:59:02.474 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 02-Oct-2023 14:59:02.476 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 02-Oct-2023 14:59:02.478 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 02-Oct-2023 14:59:02.478 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 02-Oct-2023 14:59:02.482 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-41031"] 02-Oct-2023 14:59:02.489 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-41031"] 02-Oct-2023 14:59:02.492 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 02-Oct-2023 14:59:02.494 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-41031"] 02-Oct-2023 14:59:02.497 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-41031"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.351 sec Testcase: testUseContentTypeExpiresConfiguration took 0.103 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.001 sec Testcase: testBug63909 took 0.359 sec Testcase: testConfiguration took 0.018 sec Testcase: testNullContentType took 0.02 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.038 sec Testcase: testUseDefaultConfiguration2 took 0.027 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.028 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.027 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.023 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.029 sec Testcase: testEmptyContent took 0.024 sec