1. 18 8月, 2021 2 次提交
  2. 17 8月, 2021 2 次提交
  3. 13 8月, 2021 1 次提交
  4. 12 8月, 2021 1 次提交
  5. 11 8月, 2021 2 次提交
  6. 09 8月, 2021 1 次提交
  7. 08 8月, 2021 3 次提交
  8. 04 8月, 2021 4 次提交
  9. 31 7月, 2021 2 次提交
  10. 30 7月, 2021 5 次提交
    • S
      Support Charset for character encoding in MockMvc · bd1f5bd9
      Sam Brannen 提交于
      To improve the developer experience and avoid the use of String
      literals, this commit provides overloaded support via Charset for
      character encoding in MockHttpServletRequestBuilder and
      ContentResultMatchers.
      
      Closes gh-27231
      bd1f5bd9
    • S
      Polishing · 4d115eef
      Sam Brannen 提交于
      4d115eef
    • S
      Support default character encoding for response in MockMvc · 0f421f9f
      Sam Brannen 提交于
      Commit e4b9b1fa introduced support for setting the default character
      encoding in MockHttpServletResponse.
      
      This commit introduces support for configuring the default character
      encoding in the underlying MockHttpServletResponse used in MockMvc.
      
      Closes gh-27230
      0f421f9f
    • S
      Polish PrintingResultHandler · 41fa1991
      Sam Brannen 提交于
      41fa1991
    • S
      Apply global ResultHandlers before ResultMatchers in MockMvc · 881fa889
      Sam Brannen 提交于
      Prior to this commit, MockMvc applied global ResultMatchers before
      global ResultHandlers. This lead to unexpected scenarios where a
      failing matcher would prevent a handler from being applied.
      
      One concrete use case is `alwaysDo(print(System.err))` which should
      print out MockMvc results for debugging purposes. However, if MockMvc is
      configured with something like `alwaysExpect(content().string("?"))`
      and the expectation fails, the user will never see the expected debug
      output to help diagnose the problem.
      
      This commit addresses this issue by applying global ResultHandlers
      before ResultMatchers in MockMvc.
      
      Closes gh-27225
      881fa889
  11. 29 7月, 2021 7 次提交
  12. 28 7月, 2021 4 次提交
  13. 27 7月, 2021 1 次提交
  14. 26 7月, 2021 1 次提交
    • S
      Avoid StringIndexOutOfBoundsException in WebSocketMessageBrokerStats · 42edef0b
      Sam Brannen 提交于
      Prior to this commit, if the TaskExecutor configured in
      WebSocketMessageBrokerStats for the inboundChannelExecutor or
      outboundChannelExecutor was not a ThreadPoolTaskExecutor, a
      StringIndexOutOfBoundsException was thrown when attempting to parse the
      results of invoking toString() on the executor.
      
      The reason is that ThreadPoolTaskExecutor delegates to a
      ThreadPoolExecutor whose toString() implementation generates text
      containing "pool size = ...", and WebSocketMessageBrokerStats'
      getExecutorStatsInfo() method relied on the presence of "pool" in the
      text returned from toString().
      
      This commit fixes this bug by ensuring that the text returned from
      toString() contains "pool" before parsing the text. If "pool" is not
      present in the text, getExecutorStatsInfo() now returns "unknown"
      instead of throwing a StringIndexOutOfBoundsException.
      
      Closes gh-27209
      42edef0b
  15. 25 7月, 2021 1 次提交
  16. 24 7月, 2021 1 次提交
  17. 23 7月, 2021 2 次提交