- 06 6月, 2014 1 次提交
-
-
由 Sam Brannen 提交于
Prior to this commit, it was possible to execute SQL scripts programmatically via ResourceDatabasePopulator, JdbcTestUtils, and ScriptUtils. Furthermore, it was also possible to execute SQL scripts declaratively via the <jdbc> XML namespace. However, it was not possible to execute SQL scripts declaratively on a per test class or per test method basis. This commit makes it possible to declaratively configure SQL scripts for execution in integration tests via annotations that can be declared at the class or method level. Details follow. - Introduced a repeatable @DatabaseInitializer annotation that can be used to configure SQL scripts at the class or method level with method-level overrides. @DatabaseInitializers serves as a container for @DatabaseInitializer. - Introduced a new DatabaseInitializerTestExecutionListener that is responsible for parsing @DatabaseInitializer and @DatabaseInitializers and executing SQL scripts. - DatabaseInitializerTestExecutionListener is registered by default in abstract base test classes as well as in TestContextBootstrapper implementations. - @DatabaseInitializer and @DatabaseInitializers may be used as meta-annotations; however, attribute overrides are not currently supported for repeatable annotations used as meta-annotations. This is a known limitation of Spring's AnnotationUtils. - The semantics for locating SQL script resources is consistent with @ContextConfiguration's semantics for locating XML configuration files. In addition, a default SQL script can be detected based either on the name of the annotated class or on the name of the annotated test method. - @DatabaseInitializer allows for specifying which DataSource and PlatformTransactionManager to use from the test's ApplicationContext, including default conventions consistent with TransactionalTestExecutionListener and @TransactionConfiguration. - @DatabaseInitializer supports all of the script configuration options currently supported by ResourceDatabasePopulator. - @DatabaseInitializer and DatabaseInitializerTestExecutionListener support execution phases for scripts that dictate when SQL scripts are executed (i.e., before or after a test method). - SQL scripts can be executed within the current test's transaction if present, outside of the current test's transaction if present, or always in a new transaction, depending on the value of the boolean requireNewTransaction flag in @DatabaseInitializer. - DatabaseInitializerTestExecutionListener delegates to ResourceDatabasePopulator#execute to actually execute the scripts. Issue: SPR-7655
-
- 05 6月, 2014 7 次提交
-
-
由 Juergen Hoeller 提交于
Issue: SPR-11816
-
由 Juergen Hoeller 提交于
DefaultSubscriptionRegistry's removeSubscriptionInternal defensively handles non-existing destinations Issue: SPR-11832
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Moved @Uses annotations to org.springframework.lang; fixed Base64Utils to declare Java 8, and fixed PathResource's declaration to refer to Java 7. Issue: SPR-11604
-
由 Stephane Nicoll 提交于
* patch-1: Fix a typo
-
由 Alex Yursha 提交于
-
由 Stephane Nicoll 提交于
This commit introduces OrderProvider and OrderProviderComparator, two interfaces designed to externalize how a collection of element is sorted according to their order value. FactoryAwareOrderProvider is an OrderProvider implementation that knows about the objects to order and the corresponding BeanFactory instance. This allows to retrieve additional metadata about the actual instances to sort, such as its factory method. A @Bean method can now holds an additional @order to define the order value that this bean should have when injected as part of a collection or array. Issue: SPR-11310
-
- 04 6月, 2014 1 次提交
-
-
由 Juergen Hoeller 提交于
GsonBuilderUtils for programmatic Base64 serialization setup; common Base64Utils class adapts between Java 8 and Commons Codec Issue: SPR-9488
-
- 02 6月, 2014 2 次提交
-
-
由 Stephane Nicoll 提交于
This commit clarifies the role of the external transactionManager for a DMLC and the relationship with the sessionTransacted flag Issue: SPR-9200
-
由 Stephane Nicoll 提交于
This commit adds a invokeOperation protected method in case one needs a hook point in the way the underlying cache method is invoked, and how exceptions that might be thrown by that invocation are handled. Issue: SPR-11540
-
- 31 5月, 2014 7 次提交
-
-
由 Rossen Stoyanchev 提交于
Issue: SPR-10859
-
由 Rossen Stoyanchev 提交于
Issue: SPR-10859
-
由 Juergen Hoeller 提交于
Issue: SPR-11808
-
由 Juergen Hoeller 提交于
Issue: SPR-11830
-
由 Juergen Hoeller 提交于
ClassMetadata exposes isAnnotation() now, and correctly returns false from hasSuperClass() for interfaces and annotations Issue: SPR-11711
-
由 Rossen Stoyanchev 提交于
-
由 Artem Bilan 提交于
This change ensures that StompSubProtocolHandler is injected with an ApplicationEventPublisher for both the Java and XML config. Issue: SPR-11825
-
- 30 5月, 2014 7 次提交
-
-
由 Juergen Hoeller 提交于
Introducing GroovyWebApplicationContext along the lines of XmlWebApplicationContext and GenericGroovyApplicationContext Also includes minor dependency updates such as Groovy 2.3.2. Issue: SPR-11371
-
由 Juergen Hoeller 提交于
Issue: SPR-11827
-
由 Juergen Hoeller 提交于
-
由 Stephane Nicoll 提交于
If no converter is found, the MessageConversionException now contains the message instance that could not be handled Issue: SPR-11817
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
Prior to this commit, the ordering of classpath entries in the generated Eclipse .classpath files did not align with the intended dependency management configured in the Gradle build. Specifically, project dependencies often came before dependencies on third-party libraries required for the given project, causing the project not to compile in Eclipse. This commit fixes this issue by introducing new functionality in the ide.gradle script that moves all project dependencies to the end of the generated classpath. Issue: SPR-11836
-
由 Sam Brannen 提交于
This commit upgrades Hibernate-based integration tests in the spring-test module to use Hibernate 4 instead of 3 and Hibernate Validator 5 instead of 4. This streamlines and simplifies our dependency management at the same time. Issue: SPR-11834
-
- 29 5月, 2014 1 次提交
-
-
由 Sam Brannen 提交于
- Set the eclipse.jdt source and target compatibility to 1.8 in ide.gradle. - Updated the instructions in import-into-eclipse.sh to reflect minimum requirements for building Spring Framework 4.1 against Java 8 with Eclipse and STS Issue: SPR-11831
-
- 28 5月, 2014 8 次提交
-
-
由 Stephane Nicoll 提交于
Prior to this commit, no exception was raised if a message could not be converted to the requested payload because no suitable converter were found. This commit adds an explicit check if the converted payload is null. Issue: SPR-11817
-
由 Sam Brannen 提交于
Eclipse 4.4 early release versions have issues with generics. This commit slightly tweaks the use of generics in JmsMessagingTemplateTests so that the class compiles in the latest builds of Eclipse 4.4
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
This change adds a ResourceTransformer that can be invoked in a chain after resource resolution. The CssLinkResourceTransformer modifies a CSS file being served in order to update its @import and url() links (e.g. to images or other CSS files) to match the resource resolution strategy (e.g. adding MD5 content-based hashes). Issue: SPR-11800
-
由 Sam Brannen 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-9488
-
由 Juergen Hoeller 提交于
-
- 27 5月, 2014 1 次提交
-
-
由 Juergen Hoeller 提交于
ServletRequestAttributes considers standard Number subclasses (as defined in NumberUtils) as immutable Issue: SPR-11738
-
- 26 5月, 2014 3 次提交
-
-
由 Stephane Nicoll 提交于
-
由 Stephane Nicoll 提交于
This commit updates the JMS documentation regarding the side effects of not using the cache with a non durable subscriber. Issue: SPR-7883
-
由 Stephane Nicoll 提交于
This commit revisits JmsMessagingTemplate and adds support for receiving operations as well. JmsMessageSendingOperations has been renamed to JmsMessageOperations. The messaging abstraction did not split receiving and request-reply operations. AbstractMessageReceivingTemplate has been created to hold only the receiving operations. Issue: SPR-11772
-
- 25 5月, 2014 2 次提交
-
-
由 Brian Clozel 提交于
fix javadoc link for RestController and PropertySource
-
由 Gildas Cuisinier 提交于
-