mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 21:39:05 +00:00
Align constant name in ServletServerHttpResponse
See gh-36385
This commit is contained in:
+2
-2
@@ -143,7 +143,7 @@ class ServletServerHttpResponseTests {
|
||||
|
||||
@Test
|
||||
void appliesFlushCallsOnOutputStream() throws Exception {
|
||||
SpringProperties.setProperty(ServletServerHttpResponse.BODY_FLUSH_ENABLED, Boolean.TRUE.toString());
|
||||
SpringProperties.setProperty(ServletServerHttpResponse.FLUSH_ENABLED_PROPERTY_NAME, Boolean.TRUE.toString());
|
||||
ServletOutputStream mockStream = mock();
|
||||
HttpServletResponse mockResponse = mock();
|
||||
when(mockResponse.getOutputStream()).thenReturn(mockStream);
|
||||
@@ -154,7 +154,7 @@ class ServletServerHttpResponseTests {
|
||||
response.getBody().flush();
|
||||
verify(mockStream).flush();
|
||||
|
||||
SpringProperties.setProperty(ServletServerHttpResponse.BODY_FLUSH_ENABLED, null);
|
||||
SpringProperties.setProperty(ServletServerHttpResponse.FLUSH_ENABLED_PROPERTY_NAME, null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user