1. 08 3月, 2016 2 次提交
    • S
      Polishing · 93fb7be7
      Sam Brannen 提交于
      93fb7be7
    • P
      Remove @BootstrapWith from @WebAppConfiguration · 504779e2
      Phillip Webb 提交于
      Update @WebAppConfiguration so that it no longer directly specifies
      a TestContextBootstrapper. This allows third parties to use the
      annotation in combination with their own bootstrapper.
      
      BootstrapUtils now provides the detection logic for when
      WebTestContextBootstrapper should be used.
      
      Issue: SPR-13991
      504779e2
  2. 03 3月, 2016 1 次提交
    • S
      Make TestContextManager.getTestContext() public · 06799471
      Sam Brannen 提交于
      This commit changes the visibility of the getTestContext() method in
      TestContextManager from 'protected' to 'public' in order to support
      test method injection in JUnit 5 and similar use cases.
      
      Issue: SPR-14011
      06799471
  3. 01 3月, 2016 1 次提交
  4. 29 2月, 2016 4 次提交
    • S
      Allow non-public @Transactional test methods · df7b24b8
      Sam Brannen 提交于
      Prior to this commit, the TransactionalTestExecutionListener required
      @Transactional test methods to be public; however, neither TestNG nor
      JUnit 5 require that @test methods are public. Consequently, non-public
      transactional test methods silently run *without* a transaction.
      
      This commit removes the 'public' restriction on transactional test
      methods by setting the 'publicMethodsOnly' flag in
      AnnotationTransactionAttributeSource to false.
      
      Issue: SPR-14000
      df7b24b8
    • S
      Polish TransactionalTestExecutionListener · 81618523
      Sam Brannen 提交于
      81618523
    • J
      Polishing · 9c0f99c0
      Juergen Hoeller 提交于
      9c0f99c0
    • S
      Support @[Before|After]Transaction on non-public methods · a2bfe866
      Sam Brannen 提交于
      In order to align with the relaxed programming models of TestNG and the
      upcoming JUnit 5 (with regard to method visibility), this commit
      removes the requirement that @BeforeTransaction and @AfterTransaction
      methods must be 'public'.
      
      Issue: SPR-13997
      a2bfe866
  5. 28 2月, 2016 2 次提交
  6. 25 2月, 2016 2 次提交
  7. 24 2月, 2016 5 次提交
    • R
      Add ExpectedCount · 91872b0d
      Rossen Stoyanchev 提交于
      MockRestServicesServer now supports an expect variant that accepts
      a range of expected count of executions.
      
      Issue: SPR-11365
      91872b0d
    • R
      Allow plugging in custom RequestExpectationManager · 08a08725
      Rossen Stoyanchev 提交于
      The MockRestServiceServer builder now has an option to plug in a
      custom RequestExpectationManager.
      
      Issue: SPR-11365
      08a08725
    • R
      Introduce MockRestServiceServer builder · a56c69c9
      Rossen Stoyanchev 提交于
      MockRestServiceServer now provides static methods for builder-style
      creation of MockRestServiceServer. This includes an option ignore
      the order of declaration expected requests.
      
      Issue: SPR-11365
      a56c69c9
    • R
      Introduce RequestExpectationManager · f58ef24e
      Rossen Stoyanchev 提交于
      This commit factors out the logic to declare and manage expectations
      including matching them to requests and verifying at the end behind
      a commong abstraction.
      
      MockRestServiceServer delegates to the new abstraction and is no longer
      aware of how that's done. There are two implementations, one for
      ordered and another for unordered expectation.
      
      Issue: SPR-11365
      f58ef24e
    • R
      Separate ResponseActions from ClientHttpRequest · 37a3fa96
      Rossen Stoyanchev 提交于
      Before this commit RequestMatcherClientHttpRequest served both as
      API to define request expectations, i.e. ResponseActions, as well as
      the implementation of ClientHttpRequest representing actual requests.
      
      DefaultResponseActions replaces this class as a simple holder of
      expected requests and mock responses. MockRestServiceServer is then
      responsible to match request expectations and create a mock response.
      
      Issue: SPR-11365
      37a3fa96
  8. 23 2月, 2016 2 次提交
  9. 19 2月, 2016 1 次提交
  10. 17 2月, 2016 1 次提交
  11. 04 2月, 2016 1 次提交
    • S
      Support primary TxMgrs and DataSources in the TCF · 677a3215
      Sam Brannen 提交于
      Prior to this commit, the transaction manager and data source look-up
      algorithms in the Spring TestContext Framework were not capable of
      retrieving 'primary' beans of those types, even though 'primary' beans
      are supported in production as well as for injecting dependencies into
      test instances. Specifically, if there was more than one transaction
      manager or data source bean and one of them was flagged as 'primary',
      the retrieveTransactionManager() and retrieveDataSource() methods in
      TestContextTransactionUtils would simply return null for such beans.
      
      This commit updates TestContextTransactionUtils by adding support for
      looking up primary transaction managers and data sources.
      
      Issue: SPR-13891
      677a3215
  12. 03 2月, 2016 1 次提交
    • S
      Throw exception if TxMgr cannot be retrieved for @Transactional test · 6d2b9a01
      Sam Brannen 提交于
      Prior to this commit, a @Transactional integration test would silently
      be executed without a transaction if the transaction manager could not
      be retrieved from the application context -- for example, it no such
      bean was defined or if multiple beans were present but none satisfied
      the qualifier.
      
      This commit addresses this issue by throwing an IllegalStateException
      if the PlatformTransactionManager cannot be retrieved for a
      @Transactional test.
      
      Issue: SPR-13895
      6d2b9a01
  13. 25 1月, 2016 1 次提交
  14. 22 1月, 2016 4 次提交
  15. 21 1月, 2016 3 次提交
  16. 16 1月, 2016 2 次提交
  17. 15 1月, 2016 2 次提交
  18. 30 12月, 2015 1 次提交
  19. 20 12月, 2015 1 次提交
  20. 18 12月, 2015 2 次提交
  21. 17 12月, 2015 1 次提交