mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 13:31:46 +00:00
SPR-6759 - Jetty 7 doesn't like ShallowEtagHeaderFilter
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2868 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+9
@@ -40,6 +40,15 @@ public class ShallowEtagHeaderFilterTest {
|
||||
filter = new ShallowEtagHeaderFilter();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isEligibleForEtag() {
|
||||
MockHttpServletRequest request = new MockHttpServletRequest("GET", "/hotels");
|
||||
MockHttpServletResponse response = new MockHttpServletResponse();
|
||||
|
||||
assertTrue(filter.isEligibleForEtag(request, response, 200, new byte[0]));
|
||||
assertFalse(filter.isEligibleForEtag(request, response, 300, new byte[0]));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void filterNoMatch() throws Exception {
|
||||
final MockHttpServletRequest request = new MockHttpServletRequest("GET", "/hotels");
|
||||
|
||||
Reference in New Issue
Block a user