1. 23 1月, 2014 3 次提交
  2. 22 1月, 2014 16 次提交
    • B
      Split tests for MethodMessageHandlers impl. · db9b6fa2
      Brian Clozel 提交于
      Prior to this commit, all MethodMessageHandlers tests were
      implemented in a single class. Since SimpAnnotationMsgHandler
      has been refactored with an abstract class, tests also
      needed such a refactoring.
      
      This commit creates test fixtures for AbstractMethodMessageHandler.
      
      Issue: SPR-11191
      db9b6fa2
    • R
      Merge pull request #447 from snicoll/SPR-11331 · 175aa86d
      Rossen Stoyanchev 提交于
      175aa86d
    • S
      Improve documentation of matrix variables. · 98174e10
      Stephane Nicoll 提交于
      Prior to this commit, it was not clear how to enable the support of matrix
      variables in the mvc namespace. As the feature is disabled by default, added
      something to highlight the part that explains how to configure it
      
      Issue: SPR-11331
      98174e10
    • J
      Revised RootBeanDefinition's externallyManaged* Sets to rely on postProcessingLock · a599b57a
      Juergen Hoeller 提交于
      This allows us to avoid early initialization of footprint-heavy ConcurrentHashMaps, and reuses the existing postProcessingLock which will typically be active already when registerExternallyManaged* calls come in from the bean factory's post-processing phase.
      
      Issue: SPR-11343
      a599b57a
    • S
      Merge pull request #449 from sbrannen/SPR-6132 · e20c927c
      Sam Brannen 提交于
      Introduce EJB-based transactional tests in the TCF
      e20c927c
    • S
      Introduce EJB-based transactional tests in the TCF · c0eafa9e
      Sam Brannen 提交于
      This commit introduces transactional integration tests executing
      against both JUnit and TestNG in the TestContext framework (TCF) using
      @TransactionAttribute in EJBs instead of Spring’s @Transactional
      annotation.
      
      These tests disprove the claims raised in SPR-6132 by demonstrating that
      transaction support in the TCF works as expected when a transactional
      EJB method that is configured with TransactionAttribute.REQUIRES_NEW is
      invoked. Specifically:
      
       - The transaction managed by the TCF is suspended while such an EJB
         method is invoked.
       - Any work performed within the new transaction for the EJB method is
         committed after the method invocation completes.
       - The transaction managed by the TCF is resumed and subsequently
         either rolled back or committed as necessary based on the
         configuration of @Rollback and @TransactionConfiguration.
      
      The configuration for the JUnit-based tests is straightforward and self
      explanatory; however, the configuration for the TestNG tests is less
      intuitive.
      
      In order for the TCF to function properly, the developer must ensure
      that test methods within a given TestNG test (whether defined locally,
      in a superclass, or somewhere else in the suite) are executed in the
      proper order. In a stand-alone test class this is straightforward;
      however, in a test class hierarchy (or test suite) with dependent
      methods, it is necessary to configure TestNG so that all methods within
      an individual test are executed in isolation from test methods in other
      tests. This can be achieved by configuring a test class to run in its
      own uniquely identified suite (e.g., by annotating each concrete
      TestNG-based test class with @test(suiteName = "< Some Unique Suite
      Name >")).
      
      For example, without specifying a unique suite name for the TestNG
      tests introduced in this commit, test methods will be executed in the
      following (incorrect) order:
      
       - CommitForRequiredEjbTxDaoTestNGTests.test1InitialState()
       - CommitForRequiresNewEjbTxDaoTestNGTests.test1InitialState()
       - RollbackForRequiresNewEjbTxDaoTestNGTests.test1InitialState()
       - RollbackForRequiredEjbTxDaoTestNGTests.test1InitialState()
       - CommitForRequiredEjbTxDaoTestNGTests.test2IncrementCount1()
      
      The reason for this ordering is that test2IncrementCount1() depends on
      test1InitialState(); however, the intention of the developer is that
      the tests for an individual test class are independent of those in
      other test classes. So by specifying unique suite names for each test
      class, the following (correct) ordering is achieved:
      
       - RollbackForRequiresNewEjbTxDaoTestNGTests.test1InitialState()
       - RollbackForRequiresNewEjbTxDaoTestNGTests.test2IncrementCount1()
       - RollbackForRequiresNewEjbTxDaoTestNGTests.test3IncrementCount2()
       - CommitForRequiredEjbTxDaoTestNGTests.test1InitialState()
       - CommitForRequiredEjbTxDaoTestNGTests.test2IncrementCount1()
       - CommitForRequiredEjbTxDaoTestNGTests.test3IncrementCount2()
       - RollbackForRequiredEjbTxDaoTestNGTests.test1InitialState()
       - RollbackForRequiredEjbTxDaoTestNGTests.test2IncrementCount1()
       - RollbackForRequiredEjbTxDaoTestNGTests.test3IncrementCount2()
       - CommitForRequiresNewEjbTxDaoTestNGTests.test1InitialState()
       - CommitForRequiresNewEjbTxDaoTestNGTests.test2IncrementCount1()
       - CommitForRequiresNewEjbTxDaoTestNGTests.test3IncrementCount2()
      
      See the JIRA issue for more detailed log output.
      
      Furthermore, @DirtiesContext(classMode = ClassMode.AFTER_CLASS) has
      been used in both the JUnit and TestNG tests introduced in this commit
      in order to ensure that the in-memory database is reinitialized between
      each test class.
      
      Issue: SPR-6132
      c0eafa9e
    • S
      Suppress warnings and remove unused imports · 597ef099
      Sam Brannen 提交于
      597ef099
    • B
      Remove serialVersionUIDs in spring-messaging Exc. · 845a6b0b
      Brian Clozel 提交于
      Prior to this commit, several spring-messaging exceptions
      had defined serialVersionUIDs. Those exception aren't
      supposed to leave the system via Java serialization; also,
      their deserialization is supported only against the same
      version of Spring.
      
      Issue: SPR-11339
      845a6b0b
    • J
      Switched 'order' attributes across namespaces to 'xsd:token' · 12c393eb
      Juergen Hoeller 提交于
      Issue: SPR-10886
      Issue: SPR-7342
      12c393eb
    • J
      Temporarily deactivated Undertow integration tests · 39694678
      Juergen Hoeller 提交于
      Undertow tests fail against OpenJDK 8 build 124 with a BindException.
      39694678
    • P
      Unwrap TypeVariables before calling .equals() · 59604b1c
      Phillip Webb 提交于
      Update ResolvableType to unwrap Serialization wrapped TypeVariables
      before calling the equals method.
      
      This protects against the recent change in OpenJDK 8 (build 124)
      which changed the TypeVariableImpl equals method such that it only
      matches against other TypeVariableImpl instances.
      
      Issue: SPR-11342
      59604b1c
    • R
      Encode user names in user destanations · d03fb895
      Rossen Stoyanchev 提交于
      Issue: SPR-11302
      d03fb895
    • P
      Fix SerializableTypeWrapper equals() performance · d96b91a5
      Phillip Webb 提交于
      Change SerializableTypeWrapper proxies to directly call equals() methods
      on the underlying Type, rather than possibly generating more wrappers.
      
      This should help to improve performance, especially as the equals()
      method is called many times when the ResolvableType cache is checked.
      
      Issue: SPR-11335
      d96b91a5
    • R
      Use DestinationUserNameProvider with @SendTo · ae06c3a6
      Rossen Stoyanchev 提交于
      Issue: SPR-11327
      ae06c3a6
    • R
      Add DestinationUserNameProvider interface · e4ad2b35
      Rossen Stoyanchev 提交于
      The interface is to be implemented in addition to
      java.security.Principal when Principal.getName() is not globally unique
      enough for use in user destinations.
      
      Issue: SPR-11327
      e4ad2b35
    • R
      Polish · 2cafe9d7
      Rossen Stoyanchev 提交于
      2cafe9d7
  3. 21 1月, 2014 21 次提交