1. 12 12月, 2013 7 次提交
  2. 11 12月, 2013 5 次提交
    • S
      Make methods of TestContext non-final · b20b7415
      Sam Brannen 提交于
      This commit makes several methods of TestContext non-final in order to
      allow TestContext to be mocked — for example with Mockito.
      
      Note, however, that TestContext has been converted to an interface in
      Spring Framework 4.0.
      
      Issue: SPR-11144
      b20b7415
    • S
      Do not repopulate RequestContextHolder in ServTEL · 38ad39f4
      Sam Brannen 提交于
      This commit fixes a bug introduced in the last commit.
      
      ServletTestExecutionListener (STEL) now tracks whether it has already
      populated the RequestContextHolder.
      
      Issue: SPR-11144
      
      Backport-Commit: 800018a8
      38ad39f4
    • S
      Honor presence of @WebAppConfiguration in ServTEL · 6ded2871
      Sam Brannen 提交于
      The previous commit for issue SPR-11144 revealed a bug in
      ServletTestExecutionListener (STEL). Specifically, STEL acted on the
      fact that the ApplicationContext for a given TestContext was an
      instance of WebApplicationContext. This behavior could potentially
      break test code from previous releases of the Spring Framework that
      relied on a custom setup of the RequestAttributes in the
      RequestContextHolder with a custom WebApplicationContext ContextLoader.
      
      This commit addresses this issue by ensuring that STEL only comes into
      play if the test class is annotated with @WebAppConfiguration (for
      prepareTestInstance() and beforeTestMethod()) or if the TestContext
      attribute named RESET_REQUEST_CONTEXT_HOLDER_ATTRIBUTE is set to
      Boolean.TRUE (for afterTestMethod()).
      
      Issue: SPR-11144
      
      Backport-Commit: 099b10d2
      6ded2871
    • J
      Polishing · 6e275b76
      Juergen Hoeller 提交于
      6e275b76
    • J
      Fixed ExtendedBeanInfo and its tests to accept JDK 8 b117+ introspection results · 88272637
      Juergen Hoeller 提交于
      Specifically, read and write methods are allowed to express property types with superclass/subclass relationships in both directions now.
      
      Issue: SPR-11139
      (cherry picked from commit cb624e25)
      88272637
  3. 10 12月, 2013 4 次提交
  4. 09 12月, 2013 3 次提交
    • S
      Ensure ServTEL doesn't reset ReqAttrs by accident · c89985c1
      Sam Brannen 提交于
      Prior to this commit, the ServletTestExecutionListener did not
      overwrite RequestAttributes in the RequestContextHolder if the
      ApplicationContext associated with the given TestContext was not a
      WebApplicationContext; however, the ServletTestExecutionListener would
      clear the RequestAttributes after every test method execution,
      regardless of whether the context was a WebApplicationContext or not.
      This behavior breaks backwards compatibility with integration tests
      that managed the RequestAttributes in RequestContextHolder themselves.
      
      This commit addresses this issue by introducing a TestContext attribute
      named RESET_REQUEST_CONTEXT_HOLDER_ATTRIBUTE in
      ServletTestExecutionListener. This attribute is used internally within
      ServletTestExecutionListener to ensure that the RequestContextHolder is
      only cleared (i.e., reset) if the ServletTestExecutionListener actually
      populated the RequestContextHolder.
      
      Issue: SPR-11144
      
      Backport-Commit: a3b022aa
      c89985c1
    • J
      Polishing · d4b07516
      Juergen Hoeller 提交于
      d4b07516
    • J
      Fixed detection of qualifier annotations on scoped-proxy factory methods · 6bed1800
      Juergen Hoeller 提交于
      Issue: SPR-11116
      6bed1800
  5. 04 12月, 2013 1 次提交
  6. 03 12月, 2013 5 次提交
  7. 02 12月, 2013 3 次提交
  8. 27 11月, 2013 1 次提交
    • P
      Detect cache hit with multiple @Cachables · 73a8a1b9
      Phillip Webb 提交于
      Fix CacheAspectSupport to consider a cache hit from any of the multiple
      @Cachables that may have been specified using the @Caching annotation.
      
      Prior to this commit the following scenario would never produce a hit:
      
          @Caching(cacheable = {
                  @Cacheable(value = "c1", unless = "#result.size() < 4"),
                  @Cacheable(value = "c2", unless = "#result.size() > 3")
           })
      
      Issue: SPR-11124
      73a8a1b9
  9. 07 11月, 2013 2 次提交
  10. 06 11月, 2013 4 次提交
  11. 05 11月, 2013 5 次提交