1. 27 7月, 2015 7 次提交
  2. 26 7月, 2015 6 次提交
    • S
      Update TODO for SPR-13280 · aae0bd2f
      Sam Brannen 提交于
      aae0bd2f
    • S
      Deprecate TxConfigAttributes alongside @TxConfig · 47e1724d
      Sam Brannen 提交于
      Since @TransactionConfiguration is now deprecated, this commit also
      deprecates TransactionConfigurationAttributes with the intention of
      completely removing TransactionConfigurationAttributes once
      @TransactionConfiguration has been removed.
      
      Issue: SPR-13277
      47e1724d
    • S
      Introduce @Commit alias for @Rollback(false) · d6bdfcaa
      Sam Brannen 提交于
      Due to common usage of @Rollback(false), this commit introduces a new
      @Commit annotation that more clearly conveys the intent of the code
      while retaining the run-time semantics.
      
      @Commit is in fact meta-annotated with @Rollback(false).
      
      Issue: SPR-13279
      d6bdfcaa
    • S
      Polishing · baa66f7b
      Sam Brannen 提交于
      baa66f7b
    • S
      Migrate @TxConfig usage to @Rollback & @Transactional qualifiers · c4bbc9df
      Sam Brannen 提交于
      Issue: SPR-13276, SPR-13277
      c4bbc9df
    • S
      Support @Rollback on classes & deprecate @TxConfig · 3f8b5128
      Sam Brannen 提交于
      Since Spring Framework 2.5, @Rollback has been supported on test
      methods, with class-level rollback settings configured via
      @TransactionConfiguration; however, allowing @Rollback to be declared
      on test classes with method-level declarations overriding class-level
      declarations would prove more intuitive than having to declare both
      @TransactionConfiguration and @Rollback. Furthermore, the
      transactionManager flag in @TransactionConfiguration was made
      superfluous many years ago with the introduction of support for a
      qualifier in @Transactional.
      
      This commit enables @Rollback to be declared at the class level for
      default rollback semantics within test class hierarchies and deprecates
      @TransactionConfiguration in favor of @Rollback and @Transactional
      qualifiers.
      
      Issue: SPR-13276, SPR-13277
      3f8b5128
  3. 25 7月, 2015 2 次提交
  4. 24 7月, 2015 6 次提交
  5. 23 7月, 2015 2 次提交
    • S
      Polishing · 2afbfb2c
      Sam Brannen 提交于
      2afbfb2c
    • B
      Improve DateHeaders in MockServletRequest/Response · 43e36e2d
      Brian Clozel 提交于
      Prior to this change, calling the `setDateHeader` method on a
      Spring Test MockHttpServletResponse instance would just store the given
      long value in a Map, not writing it as a formatted date String.
      Also, calling `getDateHeader` on a MockHttpServletRequest would not
      support date strings and could not parse those values.
      
      This can be problematic when testing features related to date headers
      such as "Expires", "If-Modified-Since", "Last-Modified", etc.
      
      This commit adds formatting and parsing capabilities to Servlet Mocks
      for date strings in HTTP headers.
      
      When formatting dates to Strings, the date format used is the one
      preferred by the HTTP RFC. When parsing date Strings, multiple date
      formats are supported for better compatibility.
      
      Issue: SPR-11912
      43e36e2d
  6. 22 7月, 2015 14 次提交
  7. 21 7月, 2015 3 次提交