1. 26 11月, 2013 1 次提交
    • P
      Fix remaining compiler warnings · 59002f24
      Phillip Webb 提交于
      Fix remaining Java compiler warnings, mainly around missing
      generics or deprecated code.
      
      Also add the `-Werror` compiler option to ensure that any future
      warnings will fail the build.
      
      Issue: SPR-11064
      59002f24
  2. 12 9月, 2013 1 次提交
    • S
      Exclude null requestURI in MHSR.getRequestURL() · ee5d6c8f
      Sam Brannen 提交于
      This commit undoes the changes made in ec5d81e7 and ensures that the
      getRequestURL() method in MockHttpServletRequest does not include the
      String "null" for a null requestURI by first checking if the requestURI
      contains text before including it in the composed URL.
      
      Issue: SPR-10643
      ee5d6c8f
  3. 09 6月, 2013 2 次提交
    • S
      Ensure method & requestURI are non-null in MHSR · ec5d81e7
      Sam Brannen 提交于
      Prior to this commit it was possible for the method and requestURI
      fields in MockHttpServletRequest to be set to null.
      
      This commit ensures that the method and requestURI fields are internally
      stored as empty strings if the user sets them to a null value.
      
      Issue: SPR-10643
      ec5d81e7
    • S
      Support implicit ports in MHSR.getRequestURL() · 86591e5e
      Sam Brannen 提交于
      Prior to this commit, MockHttpServletRequest.getRequestURL() always
      included the server port number in the reconstructed request URL, even
      for implicit ports (i.e., 80 and 443) and negative ports.
      
      MockHttpServletRequest.getRequestURL() now omits the port number when
      reconstructing a URL that has an implicit or negative port.
      
      Issue: SPR-9726
      86591e5e
  4. 14 5月, 2013 1 次提交
  5. 21 3月, 2013 1 次提交
  6. 30 1月, 2013 1 次提交
  7. 23 1月, 2013 1 次提交
  8. 02 1月, 2013 1 次提交
  9. 29 12月, 2012 3 次提交
  10. 28 10月, 2012 1 次提交
    • S
      Configurable locales in MockHttpServletRequest · 591aa017
      Sam Brannen 提交于
      Prior to this commit the MockHttpServletRequest constructor chain set
      the preferred local to Locale.ENGLISH. Furthermore, it was possible to
      add additional preferred locales "in front" of ENGLISH; however, it was
      not possible to delete ENGLISH from the list of preferred locales.
      
      This commit documents the fact that ENGLISH is the default preferred
      locale and makes it possible to set the list of preferred locales via a
      new setPreferredLocales(List<Locale> locales) method.
      
      Issue: SPR-9724
      591aa017
  11. 31 1月, 2012 1 次提交
    • C
      Rename modules {org.springframework.*=>spring-*} · 02a4473c
      Chris Beams 提交于
      This renaming more intuitively expresses the relationship between
      subprojects and the JAR artifacts they produce.
      
      Tracking history across these renames is possible, but it requires
      use of the --follow flag to `git log`, for example
      
          $ git log spring-aop/src/main/java/org/springframework/aop/Advisor.java
      
      will show history up until the renaming event, where
      
          $ git log --follow spring-aop/src/main/java/org/springframework/aop/Advisor.java
      
      will show history for all changes to the file, before and after the
      renaming.
      
      See http://chrisbeams.com/git-diff-across-renamed-directories
      02a4473c
  12. 12 12月, 2011 1 次提交
  13. 17 11月, 2011 2 次提交
    • R
      SPR-8750 Refine 'Content-Type' update in MockHttpServletRequest/Response. · 63e235f2
      Rossen Stoyanchev 提交于
      The initial solution kept these three in full sync at all times:
      contentType field, characterEncoding field, 'Content-Type' header.
      That is correct behavior, however it breaks existing tests that rely
      on contentType and characterEncoding being equal to exactly what 
      they were set to.
      
      For example, consider:
      response.setContentType("text/plain");
      response.setCharacterEncoding("UTF-8");
      
      Ideally both contentType and the 'Content-Type' header would now be
      "text/plain;charset=UTF-8". However, existing tests would expect 
      that contentType is equal to "text/plain".
      
      To avoid breaking existing tests, contentType and characterEncoding
      will continue to be equal to exactly what they were set to while
      the 'Content-Type' header will always include both the content 
      type and the charset.
      
      The only exception to this rule is when a 'Content-Type' header
      is set explicitly, the contentType and characterEncoding fields will 
      be updated accordingly, possibly overriding the existing values.
      
      
      63e235f2
    • R
      SPR-8750 Update MockHttpServletRequest/Response handling of contentType. · 79188103
      Rossen Stoyanchev 提交于
      The Content-Type header and the contentType field in HttpServletRequest/Response
      are now always in sync. When a header is added the contentType field is updated
      as well and vice versa. 
      
      Similarly when the Content-Type header or the contentType field includes a charset 
      field, the character encoding is updated and vice versa.
      
      
      79188103
  14. 15 7月, 2011 1 次提交
  15. 09 2月, 2011 1 次提交
  16. 02 10月, 2010 1 次提交
  17. 06 8月, 2009 1 次提交
  18. 13 5月, 2009 1 次提交
  19. 21 1月, 2009 1 次提交
  20. 19 12月, 2008 1 次提交
  21. 20 11月, 2008 1 次提交
  22. 03 11月, 2008 1 次提交
  23. 27 10月, 2008 1 次提交