Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.799 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 20 Feb 2024 15:21:04 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 20 Feb 2024 15:24:04 GMT Content-Length: 11 Date: Tue, 20 Feb 2024 15:21:04 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 20 Feb 2024 15:21:04 GMT Expires: Tue, 20 Feb 2024 15:28:05 GMT Keep-Alive: timeout=3 ETag: W/"971-1708441815874" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 20 Feb 2024 15:22:05 GMT Content-Length: 0 Date: Tue, 20 Feb 2024 15:21:04 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 20 Feb 2024 15:22:05 GMT Content-Length: 11 Date: Tue, 20 Feb 2024 15:21:04 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 20 Feb 2024 15:22:05 GMT Content-Length: 11 Date: Tue, 20 Feb 2024 15:21:04 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 20 Feb 2024 15:28:05 GMT Content-Length: 11 Date: Tue, 20 Feb 2024 15:21:04 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: Tue, 20 Feb 2024 15:21:04 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 20 Feb 2024 15:21:05 GMT Content-Length: 11 Date: Tue, 20 Feb 2024 15:21:04 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 20 Feb 2024 15:26:05 GMT Content-Length: 11 Date: Tue, 20 Feb 2024 15:21:04 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 20 Feb 2024 15:28:05 GMT Content-Length: 0 Date: Tue, 20 Feb 2024 15:21:05 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 20-Feb-2024 15:21:03.030 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 20-Feb-2024 15:21:03.994 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 20-Feb-2024 15:21:04.023 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 15:21:04.023 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 15:21:04.188 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-41581"] 20-Feb-2024 15:21:04.420 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-41581"] 20-Feb-2024 15:21:04.426 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 15:21:04.446 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-41581"] 20-Feb-2024 15:21:04.458 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-41581"] 20-Feb-2024 15:21:04.466 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 20-Feb-2024 15:21:04.479 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 20-Feb-2024 15:21:04.480 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 15:21:04.480 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 15:21:04.492 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-39709"] 20-Feb-2024 15:21:04.543 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-39709"] 20-Feb-2024 15:21:04.546 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 15:21:04.549 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-39709"] 20-Feb-2024 15:21:04.552 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-39709"] 20-Feb-2024 15:21:04.556 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 20-Feb-2024 15:21:04.563 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 20-Feb-2024 15:21:04.564 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 20-Feb-2024 15:21:04.581 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 20-Feb-2024 15:21:04.587 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 15:21:04.588 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 15:21:04.691 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 20-Feb-2024 15:21:04.914 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-41005"] 20-Feb-2024 15:21:05.063 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-41005"] 20-Feb-2024 15:21:05.066 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 15:21:05.071 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-41005"] 20-Feb-2024 15:21:05.076 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-41005"] 20-Feb-2024 15:21:05.078 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 20-Feb-2024 15:21:05.080 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 20-Feb-2024 15:21:05.081 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 15:21:05.081 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 15:21:05.093 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-38619"] 20-Feb-2024 15:21:05.186 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-38619"] 20-Feb-2024 15:21:05.187 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 15:21:05.189 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-38619"] 20-Feb-2024 15:21:05.194 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-38619"] 20-Feb-2024 15:21:05.198 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 20-Feb-2024 15:21:05.200 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 20-Feb-2024 15:21:05.201 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 15:21:05.201 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 15:21:05.218 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-39163"] 20-Feb-2024 15:21:05.242 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-39163"] 20-Feb-2024 15:21:05.245 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 15:21:05.254 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-39163"] 20-Feb-2024 15:21:05.258 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-39163"] 20-Feb-2024 15:21:05.260 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 20-Feb-2024 15:21:05.263 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 20-Feb-2024 15:21:05.264 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 20-Feb-2024 15:21:05.272 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 20-Feb-2024 15:21:05.274 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 15:21:05.274 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 15:21:05.304 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-45651"] 20-Feb-2024 15:21:05.311 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-45651"] 20-Feb-2024 15:21:05.313 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 15:21:05.315 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-45651"] 20-Feb-2024 15:21:05.319 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-45651"] 20-Feb-2024 15:21:05.321 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 20-Feb-2024 15:21:05.322 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 20-Feb-2024 15:21:05.323 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 15:21:05.324 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 15:21:05.329 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-43389"] 20-Feb-2024 15:21:05.344 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-43389"] 20-Feb-2024 15:21:05.347 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 15:21:05.354 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-43389"] 20-Feb-2024 15:21:05.357 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-43389"] 20-Feb-2024 15:21:05.359 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 20-Feb-2024 15:21:05.360 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 20-Feb-2024 15:21:05.361 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 15:21:05.361 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 15:21:05.366 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-34339"] 20-Feb-2024 15:21:05.387 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-34339"] 20-Feb-2024 15:21:05.389 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 15:21:05.391 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-34339"] 20-Feb-2024 15:21:05.395 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-34339"] 20-Feb-2024 15:21:05.396 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 20-Feb-2024 15:21:05.399 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 20-Feb-2024 15:21:05.399 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 15:21:05.400 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 15:21:05.405 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-44277"] 20-Feb-2024 15:21:05.414 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-44277"] 20-Feb-2024 15:21:05.414 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 15:21:05.423 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-44277"] 20-Feb-2024 15:21:05.426 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-44277"] 20-Feb-2024 15:21:05.428 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 20-Feb-2024 15:21:05.429 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 20-Feb-2024 15:21:05.430 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 20-Feb-2024 15:21:05.432 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 20-Feb-2024 15:21:05.432 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 15:21:05.432 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 15:21:05.437 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-33631"] 20-Feb-2024 15:21:05.469 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-33631"] 20-Feb-2024 15:21:05.470 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 15:21:05.472 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-33631"] 20-Feb-2024 15:21:05.476 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-33631"] 20-Feb-2024 15:21:05.477 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 20-Feb-2024 15:21:05.478 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 20-Feb-2024 15:21:05.482 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 15:21:05.482 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 15:21:05.495 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-34269"] 20-Feb-2024 15:21:05.509 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-34269"] 20-Feb-2024 15:21:05.510 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 15:21:05.511 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-34269"] 20-Feb-2024 15:21:05.517 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-34269"] 20-Feb-2024 15:21:05.518 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 20-Feb-2024 15:21:05.520 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 20-Feb-2024 15:21:05.521 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 20-Feb-2024 15:21:05.521 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 20-Feb-2024 15:21:05.531 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-37977"] 20-Feb-2024 15:21:05.544 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-37977"] 20-Feb-2024 15:21:05.546 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 20-Feb-2024 15:21:05.547 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-37977"] 20-Feb-2024 15:21:05.549 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-37977"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.636 sec Testcase: testUseContentTypeExpiresConfiguration took 0.088 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.009 sec Testcase: testBug63909 took 0.513 sec Testcase: testConfiguration took 0.118 sec Testcase: testNullContentType took 0.063 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.005 sec Testcase: testUseDefaultConfiguration1 took 0.056 sec Testcase: testUseDefaultConfiguration2 took 0.038 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.037 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.033 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.047 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.041 sec Testcase: testEmptyContent took 0.032 sec