1. 16 6月, 2013 1 次提交
    • 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
  2. 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
  3. 14 6月, 2013 1 次提交
  4. 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
  5. 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
  6. 09 6月, 2013 9 次提交
    • 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
    • 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
    • S
      Reformatted GenericTypeResolverTests · 97d15254
      Sam Brannen 提交于
      97d15254
    • S
      Add test to assess claims in SPR-10411 · b305f000
      Sam Brannen 提交于
      This commit verifies that the return type of a parameterized instance
      factory method is properly resolved.
      
      Issue: SPR-10411
      b305f000
    • S
      Add test to assess claim in SPR-10330 · b3a693e3
      Sam Brannen 提交于
      This commit verifies that JdbcTestUtils.readScript() properly handles
      SQL comments prefixed by tab characters.
      
      Issue: SPR-10330
      b3a693e3
    • S
      Polish method names in JdbcTestUtilsTests · bc9e4ab1
      Sam Brannen 提交于
      bc9e4ab1
    • S
      Add deleteFromTableWhere() to base classes in TCF · 34e8ee94
      Sam Brannen 提交于
      This commit introduces a deleteFromTableWhere() convenience method in
      AbstractTransactionalJUnit4SpringContextTests and
      AbstractTransactionalTestNGSpringContextTests that delegates to the
      recently introduced method of the same name in JdbcTestUtils.
      
      Issue: SPR-10639
      34e8ee94
    • S
      Upgrade to TestNG 6.8.5 · 96da4060
      Sam Brannen 提交于
      Issue: SPR-10638
      96da4060
  7. 08 6月, 2013 1 次提交
  8. 05 6月, 2013 3 次提交
    • P
      Update @Conditional processing logic · 239ce146
      Phillip Webb 提交于
      Defer @Conditional processing on @Configuration classes until the bean
      definitions are loaded, rather than when the @Configuration class is
      parsed. This provides better support for @Conditional implementations
      that inspect bean definitions.
      
      This commit also fixes some minor problems with original implementation
      and replaces the ConditionalAnnotationHelper class with
      ConditionEvaluator.
      
      Issue: SPR-10534
      239ce146
    • P
      Do not consider all @Components as configuration · 2ecc51f0
      Phillip Webb 提交于
      Update ConfigurationClassUtils to only consider beans with @Bean
      methods as 'lite' configuration candidates.
      
      Prior to this commit all @Component beans were considered 'lite'
      configuration candidates which could result in a large number of
      ConfigurationClass instance being created that would ultimately be
      ignored.
      
      Issue: SPR-10609
      2ecc51f0
    • P
      Support meta @Component with non-string value · a8fd8328
      Phillip Webb 提交于
      Update AnnotationBeanNameGenerator to only use the value attribute of
      a @Component meta-annotated annotation when it is a String.
      
      Issue: SPR-10580
      a8fd8328
  9. 04 6月, 2013 7 次提交
    • P
      Remove duplicate Javadoc line from PathResource · 5377fae7
      Phillip Webb 提交于
      Remove duplicate Javadoc comment from PathResource that was
      accidentally introduced during the merge.
      
      Issue: SPR-10608
      5377fae7
    • P
      Merge pull request #295 from marschall/SPR-10608 · 5006dcd0
      Phillip Webb 提交于
      # By Philippe Marschall
      * SPR-10608-rebase:
        Introduce java.nio.file.Path based Resource
      5006dcd0
    • P
      Introduce java.nio.file.Path based Resource · 2313c9a0
      Philippe Marschall 提交于
      Develop new org.springframework.core.io.Resource implementation
      backed by java.nio.file.Path. Primarily developed to allow custom
      file system implementations to be used with Spring.
      
      Since the minimum requirement for Spring is still Java 6 the
      existing FileSystemResource can't be retrofitted (and no #getPath
      method can be added to the Resource interface).
      
      Unlike FileSystemResource, PathResource delegates to the underlying
      file system instead of StringUtils. It has therefore slightly
      different semantics. First, when building relative resources via
      createRelative the relative path will apply to this path (like URL or
      Unix). Second, equality is delegated to the underlying file system
      provider so it's case-insensitive on Windows.
      
      Issue: SPR-10608
      2313c9a0
    • P
      Merge pull request #286 from sslavic/SPR-10571 · 1f5467a2
      Phillip Webb 提交于
      # By Stevo Slavic
      * SPR-10571:
        Replace MaxPermSize use in build scripts
      1f5467a2
    • S
      Replace MaxPermSize use in build scripts · ecf8464d
      Stevo Slavic 提交于
      Since JDK 8 is required to build Spring framework 4, and permanent
      generation is gone from Java 8, to eliminate warnings about no longer
      available MaxPermSize switch, it should be removed or replaced with new
      MaxMetaspaceSize switch.
      
      This fix replaces old with new switch to limit the amount of native
      memory used for class metadata.
      
      Issue: SPR-10571
      ecf8464d
    • P
      Support EnvironmentAware ImportSelector/Registrar · 4d338324
      Phillip Webb 提交于
      Add support for the EnvironmentAware interface with ImportSelector
      and ImportBeanDefinitionRegistrar implementations.
      
      Issue: SPR-10602
      4d338324
    • P
      Test for property placeholder with defaults · d7ec20a2
      Phillip Webb 提交于
      Test property placeholder with multiple locations and default values.
      
      Issue: SPR-10619
      d7ec20a2
  10. 31 5月, 2013 2 次提交
  11. 29 5月, 2013 1 次提交
  12. 28 5月, 2013 4 次提交
  13. 26 5月, 2013 1 次提交
  14. 23 5月, 2013 2 次提交
    • R
      Fix MergePlugin · 07b75533
      Rob Winch 提交于
      The submitted pull requests for SPR-10572 did not build.
      
      This commit fixes the MergePlugin to create from configurations rather
      than the project. It also removes unnecessarily added code that was
      commented out.
      
      Issue: SPR-10572
      07b75533
    • S
      Eliminate Gradle 1.6 deprecation warnings · bf205bfe
      Stevo Slavic 提交于
      Recently Spring framework build has been updated to use Gradle 1.6.
      With the new version some of the Gradle APIs have been deprecated.
      These deprecated APIs have been used by Spring build specific Gradle
      plugins, which resulted in deprecation warnings in build output.
      
      This patch changes Spring build specific Gradle plugins to use new
      Gradle APIs instead of deprecated ones.
      
      Even after this change build still produces warnings about Gradle
      deprecated APIs being used. These come from Spring shared Gradle
      plugins and other 3rd party Gradle plugins in use, like Gradle
      Artifactory Plugin (GAP), which are still not updated to Gradle 1.6.
      Related tickets for updating of these plugins to Gradle 1.6 are
      GRADLE-53 and GAP-144, and once they get resolved Spring framework
      build should further be updated.
      
      Issue: SPR-10572
      bf205bfe
  15. 22 5月, 2013 3 次提交