1. 20 2月, 2015 4 次提交
  2. 19 2月, 2015 13 次提交
  3. 18 2月, 2015 11 次提交
  4. 17 2月, 2015 4 次提交
    • S
      Open up TestPropertySourceUtils for public consumption · 75e0bc92
      Sam Brannen 提交于
      Spring Framework 4.1 introduced support for @TestPropertySource;
      however, the utilities used to parse inlined properties and add test
      property sources to the environment are currently private which
      prevents reuse by third-party frameworks like Spring Boot.
      
      This commit addresses this issue by making such utilities public.
      
       - TestPropertySourceUtils is now a public class.
      
       - Various utility methods in TestPropertySourceUtils have been made
         public.
      
       - addResourcePropertySourcesToEnvironment() has been renamed to
         addPropertiesFilesToEnvironment().
      
       - extractEnvironmentProperties() has been renamed to
         convertInlinedPropertiesToMap().
      
       - All public methods in TestPropertySourceUtils are now fully
         documented.
      
      Issue: SPR-12721
      75e0bc92
    • S
      Preserve ordering of inlined props in @TestPropertySource · d6a799ad
      Sam Brannen 提交于
      The initial implementation for adding inlined properties configured via
      @TestPropertySource to the context's environment did not preserve the
      order in which the properties were physically declared. This makes
      @TestPropertySource a poor testing facility for mimicking the
      production environment's configuration if the property source mechanism
      used in production preserves ordering of property names -- which is the
      case for YAML-based property sources used in Spring Boot, Spring Yarn,
      etc.
      
      This commit addresses this issue by ensuring that the ordering of
      inlined properties declared via @TestPropertySource is preserved.
      Specifically, the original functionality has been refactored. extracted
      from AbstractContextLoader, and moved to TestPropertySourceUtils where
      it may later be made public for general purpose use in other frameworks.
      
      Issue: SPR-12710
      d6a799ad
    • S
      Polish EnumerablePropertySource · add718d7
      Sam Brannen 提交于
      add718d7
    • R
      Pass SockJS session attributes to HandshakeHandler · b4fa1c24
      Rossen Stoyanchev 提交于
      Before this change the WebSocketTransportHandler passed
      Collections.emptyMap as attributes to the HandshakeHandler because
      it didn't matter what attributes the underlying WebSocketSession has
      since it is wrapped by the SockJsSession and that's what exposed for
      use everywhere.
      
      This change has the WebSocketTransportHandler passing the attributes
      from the SockJsSession instead since it's more accurate for the
      underlying WebSocketSession to have access to the same map instance
      and it allows the HandshakeHandler to change the attributes even if
      it doesn't need to do that today.
      
      Issue: SPR-12716
      b4fa1c24
  5. 16 2月, 2015 1 次提交
  6. 13 2月, 2015 2 次提交
  7. 12 2月, 2015 5 次提交