1. 27 6月, 2013 2 次提交
  2. 26 6月, 2013 3 次提交
  3. 25 6月, 2013 4 次提交
  4. 24 6月, 2013 3 次提交
  5. 23 6月, 2013 1 次提交
  6. 22 6月, 2013 1 次提交
    • P
      SimpleKeyGenerator to replace DefaultKeyGenerator · f1a18d29
      Phillip Webb 提交于
      Introduce new SimpleKeyGenerator class to supersede DefaultKeyGenerator.
      Unlike DefaultKeyGenerator, no collisions will occur with the keys
      generated by SimpleKeyGenerator as the full parameter values are
      considered within the SimpleKey.equals(...) method.
      
      The SimpleKeyGenerator is now the default class used when no explicit
      generator is configured.
      
      Issue: SPR-10237
      f1a18d29
  7. 21 6月, 2013 9 次提交
  8. 19 6月, 2013 2 次提交
  9. 17 6月, 2013 4 次提交
    • S
      Add header name to ex. msg in HeaderResultMatchers · d5a5a489
      Sam Brannen 提交于
      Prior to this commit, the longValue() in HeaderResultMatchers added the
      expected response header name to generated assertion failure messages;
      however, both string() methods did not. This made it more difficult to
      analyze the cause of failed tests.
      
      Furthermore, while investigating a solution for this issue it became
      apparent that longValue() throws a NullPointerException if the response
      does not contain the specified header.
      
      This commit addresses these issues as follows:
      
       - All methods in HeaderResultMatchers now include the response header
         name in generated assertion failure messages.
      
       - HeaderResultMatchers.longValue() now avoids NullPointerExceptions by
         explicitly asserting that the response contains the specified header.
      
       - The unit tests in HeaderAssertionTests have been expanded to test
         most foreseeable use cases.
      
      Issue: SPR-10659
      d5a5a489
    • S
      Delete remaining JUnit 3.8 tests in spring-test · 8ad36ef8
      Sam Brannen 提交于
      This commit deletes the remaining JUnit 3.8 tests in the spring-test
      module that were still subclassing deprecated class hierarchies.
      
      Issue: SPR-10499
      8ad36ef8
    • S
      Move MockMultHtServReqTests to correct package · d25611dd
      Sam Brannen 提交于
      This commit relocates MockMultipartHttpServletRequestTests to the
      appropriate package.
      d25611dd
    • S
      c06157ac
  10. 16 6月, 2013 4 次提交
    • S
      Reduce complexity in ContextLoaderUtilsTests · 432f899b
      Sam Brannen 提交于
      This commit refactors ContextLoaderUtilsTests into
      AbstractContextLoaderUtilsTests and several specialized subclasses in
      order to reduce to the growing complexity of ContextLoaderUtilsTests.
      432f899b
    • S
      d1266202
    • S
      Merge from sbrannen/SPR-10338 · 4542f362
      Sam Brannen 提交于
      * SPR-10338:
        Introduce ActiveProfilesResolver in the TCF
      4542f362
    • S
      Introduce ActiveProfilesResolver in the TCF · 044f5128
      Sam Brannen 提交于
      Prior to this commit, the active bean definition profiles to use when
      loading an ApplicationContext for tests could only be configured
      declaratively (i.e., via hard-coded values supplied to the 'value' or
      'profiles' attribute of @ActiveProfiles).
      
      This commit makes it possible to programmatically configure active bean
      definition profiles in tests via a new ActiveProfileResolver interface.
      Custom resolvers can be registered via a new 'resolver' attribute
      introduced in @ActiveProfiles.
      
      Overview of changes:
      
       - Introduced a new ActiveProfilesResolver API.
       - Added a 'resolver' attribute to @ActiveProfiles.
       - Updated ContextLoaderUtils.resolveActiveProfiles() to support
         ActiveProfilesResolvers.
       - Documented these new features in the reference manual.
       - Added new content to the reference manual regarding the
         'inheritProfiles' attribute of @ActiveProfiles
       - Removed the use of <lineannotation> Docbook markup in the testing
         chapter of the reference manual for Java code examples in order to
         allow comments to have proper syntax highlighting in the generated
         HTML and PDF.
      
      Issue: SPR-10338
      044f5128
  11. 15 6月, 2013 2 次提交
    • S
      Merge from sbrannen/SPR-8032 · d4dcf4e4
      Sam Brannen 提交于
      * SPR-8032:
        Introduce TCP & UDP server port scanning utility
      d4dcf4e4
    • S
      Introduce TCP & UDP server port scanning utility · f311bf3d
      Sam Brannen 提交于
      Prior to this commit the Spring Framework did not provide a public means
      for scanning for available server ports. However, the Spring Framework
      internally used a FreePortScanner in integration tests within its own
      test suite. Furthermore, Spring Integration 2.2 provides similar support
      in a SocketUtils class in the spring-integration-test module.
      
      This commit introduces SocketUtils in spring-core to replace the
      FreePortScanner which was previously only used internally within
      Spring's test suite. This new implementation is inspired by both Spring
      Framework's FreePortScanner and Spring Integration's SocketUtils and
      consequently attempts to merge the best of both previous
      implementations.
      
      Issue: SPR-8032
      f311bf3d
  12. 14 6月, 2013 1 次提交
  13. 13 6月, 2013 2 次提交
    • P
      Make ConfClassPostPro Ordered.HIGHEST_PRECEDENCE · b78dcc59
      Phillip Webb 提交于
      Make ConfigurationClassPostProcessor Ordered.HIGHEST_PRECEDENCE in
      case several BeanDefinitionRegistryPostProcessors are registered.
      
      Issue: SPR-10645
      b78dcc59
    • P
      Improve support for @Conditional on @Configuration · 2e2e9b8d
      Phillip Webb 提交于
      Introduce new ConfigurationCondition interface allowing more
      fine-grained control for @Conditional when used with @Configuration
      beans.
      
      Primarily added so that the evaluation of conditions that inspect bean
      definitions can be deferred until all @Configuration classes have been
      parsed.
      
      Issue: SPR-10534
      2e2e9b8d
  14. 11 6月, 2013 1 次提交
    • P
      Support fall-back to ASM parsing @Configuration · e10e16cd
      Phillip Webb 提交于
      Update ConfigurationClassParser to fall-back to ASM parsing if standard
      annotation processing fails. This change allows @Conditional annotations
      that refer to missing classes to work.
      
      This commit also introduces a new inner SourceClass object that
      encapsulates the conditional logic required when reading the source
      classes.
      
      Issue: SPR-10646
      e10e16cd
  15. 09 6月, 2013 1 次提交
    • S
      Throw ISEs in MockHttpSession for invalid session · 51d82881
      Sam Brannen 提交于
      The Javadoc for several methods in HttpSession specifies that an
      IllegalStateException must be thrown if the method is called on an
      invalidated session; however, Spring's MockHttpSession did not implement
      this behavior consistently prior to this commit.
      
      This commit therefore ensures that the following methods in
      MockHttpSession properly throw an IllegalStateException as defined in
      the Servlet specification.
      
       - long getCreationTime()
       - long getLastAccessedTime()
       - Object getAttribute(String)
       - Object getValue(String)
       - Enumeration<String> getAttributeNames()
       - String[] getValueNames()
       - void setAttribute(String, Object)
       - void putValue(String , Object)
       - void removeAttribute(String)
       - void removeValue(String)
       - void invalidate()
       - boolean isNew()
      
      Issue: SPR-7659
      51d82881