1. 21 3月, 2014 1 次提交
    • S
      Harmonize log configuration · 4cd818b9
      Stephane Nicoll 提交于
      Prior to this commit, the codebase was using a mix of log4j.xml
      and log4j.properties for test-related logging configuration. This
      can be an issue as log4j takes the xml variant first when looking
      for a default bootstrap configuration.
      
      In practice, some modules declaring the properties variant were
      taking the xml variant configuration from another module.
      
      The general structure of the configuration has also been
      harmonized to provide a standard console output as well as an
      easy way to enable trace logs for the current module.
      4cd818b9
  2. 20 3月, 2014 6 次提交
  3. 19 3月, 2014 9 次提交
  4. 18 3月, 2014 10 次提交
  5. 17 3月, 2014 9 次提交
    • S
      Favor ScriptException over SQLException · 92eb99a5
      Sam Brannen 提交于
      In ScriptUtils and related classes, SQLExceptions are now caught and
      wrapped in ScriptExceptions wherever feasible.
      
      Affected "throws" declarations have also been revised as appropriate.
      
      Issue: SPR-11564
      92eb99a5
    • J
      Extracted simple MethodInvokingBean as alternative to (and base class for)... · cf290ab4
      Juergen Hoeller 提交于
      Extracted simple MethodInvokingBean as alternative to (and base class for) MethodInvokingFactoryBean
      
      Issue: SPR-11196
      cf290ab4
    • J
      DeferredQueryInvocationHandler explicitly closes its EntityManager on garbage collection · a8577da3
      Juergen Hoeller 提交于
      Includes javadoc revision covering all supported EntityManager types as of JPA 2.1.
      
      Issue: SPR-11451
      a8577da3
    • S
      Introduce SQL script exception hierarchy · fbd25467
      Sam Brannen 提交于
      This commit continues the work began in SPR-9531 as follows.
      
       - ScriptException now extends DataAccessException.
      
       - DatabasePopulator.populate() now explicitly throws ScriptException.
      
       - Introduced UncategorizedScriptException.
      
       - DatabasePopulatorUtils.execute() now throws an
         UncategorizedScriptException instead of a
         DataAccessResourceFailureException.
      
      Issue: SPR-11564
      fbd25467
    • R
      Rename ReactorNettyTcpClient to ReactorTcpClient · f68bd5c8
      Rossen Stoyanchev 提交于
      Even though Netty is a required dependency of reactor-tcp at present,
      there is no hard dependency in the spring-messaging Reactor-based
      implementation.
      f68bd5c8
    • R
      Refine Reactor-based TCP client implementation · 2e13bf8b
      Rossen Stoyanchev 提交于
      Configure explicitly use of SynchronousDispatcher instead of the one
      used otherwise by default (RingBufferDispatcher). As a result TCP
      optations are now scoped to Netty's threads.
      
      Remove Environment field. It is no longer required to shut it down
      since we're now using SynchronousDispatcher by default.
      
      Replace connection.in() with connection.consume() when composing
      connection handling. The former creates a Stream for further composing,
      e.g. via map(), filter() but all we need is to read a message.
      
      Provide additional constructor that aceepts a pre-configured Reactor
      TcpClient instance.
      
      Issue: SPR-11531
      2e13bf8b
    • R
      Refine BrokerAvailabilityEvent behavior · 6bcbb94a
      Rossen Stoyanchev 提交于
      Add accessor for brokerAvailable in AbstractBrokerMessageHandler
      Ensure brokerAvailable is set even if eventPublisher is not
      Add tests BrokerMessageHandlerTests
      
      Turn off brokerAvailable when StompBrokerRelayMessageHandler stops
      Actually stop message handling when brokerAvailable=false
      Improve log messages
      
      Issue: SPR-11563
      6bcbb94a
    • S
      Add links to class-level Javadoc in JdbcTestUtils · 14a8f196
      Sam Brannen 提交于
      14a8f196
    • S
      Polishing · cae50c3a
      Sam Brannen 提交于
      cae50c3a
  6. 16 3月, 2014 1 次提交
    • S
      Fix regression for newline separators in SQL scripts · bb67cd46
      Sam Brannen 提交于
      Changes made in conjunction with SPR-9531, introduced a regression with
      regard to support for using a single newline character as the statement
      separator within SQL scripts. Investigation of the cause of this issue
      resulted in the discovery of another, similar issue: support for
      multiple newlines as a statement separator has been broken for years
      but has gone unnoticed until now.
      
      The reason that both of these issues have gone unnoticed is a result of
      the fact that the test suite only executes SQL script integration tests
      against HSQL DB, and HSQL does not care if two statements occur on the
      same line; whereas, the H2 database will throw an exception if multiple
      statements are included on the same line when executing an update.
      
      This commit addresses both of these issues and provides further
      enhancements to Spring's SQL script support as follows.
      
       - ScriptUtils now properly checks if the supplied script contains the
         custom statement separator or default separator before falling back
         to the 'fallback' separator (i.e., newline).
      
       - Introduced FALLBACK_STATEMENT_SEPARATOR constant in ScriptUtils.
      
       - ScriptUtils.readScript() no longer omits empty lines from the input
         file since a statement separator string may in fact be composed of
         multiple newline characters.
      
       - Introduced overloaded variants of splitSqlScript() and
         executeSqlScript() in ScriptUtils with smaller argument lists for
         common use cases.
      
       - Extracted AbstractDatabasePopulatorTests from DatabasePopulatorTests
         and introduced concrete HsqlDatabasePopulatorTests and
         H2DatabasePopulatorTests subclasses for testing against HSQL and H2.
      
       - Split ScriptUtilsTests into ScriptUtilsUnitTests and
         ScriptUtilsIntegrationTests for faster builds.
      
      Issue: SPR-11560
      bb67cd46
  7. 15 3月, 2014 4 次提交