- 14 8月, 2014 3 次提交
-
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
* SPR-12051: Introduce @TestPropertySource support in the TCF
-
由 Sam Brannen 提交于
Spring Framework 3.1 introduced an Environment abstraction with support for hierarchical PropertySources that can be configured programmatically as well as declaratively via the @PropertySource annotation. However, prior to this commit, there was no way to declaratively configure PropertySources in integration tests in the Spring TestContext Framework (TCF). This commit introduces declarative support for PropertySources in the TCF via a new class-level @TestPropertySource annotation. This annotation provides two options for declaring test property sources: - The 'locations' attribute allows developers to declare external resource locations for test properties files. - The 'properties' attribute allows developers to declare inlined properties in the form of key-value pairs. Test properties files are added to the Environment before all other property sources and can therefore override system and application property sources. Similarly, inlined properties are added to the Environment before all other property sources and can therefore override system property sources, application property sources, and test properties files. Specifically, this commit introduces the following major changes: - Introduced @TestPropertySource annotation along with internal TestPropertySourceAttributes, MergedTestPropertySources, and TestPropertySourceUtils for working with test property sources within the TCF. - All TestContextBootstrappers have been modified to support the merged property resource locations and inlined properties from @TestPropertySource. - MergedContextConfiguration (and consequently the context caching key) is now additionally based on the merged property resource locations and inlined properties from @TestPropertySource. The same applies to WebMergedContextConfiguration. - AbstractContextLoader's prepareContext() method now adds PropertySources for all resource locations and inlined properties from the supplied MergedContextConfiguration to the Environment of the supplied ApplicationContext. All subclasses of AbstractGenericContextLoader and AbstractGenericWebContextLoader therefore automatically provide support for @TestPropertySource. Issue: SPR-12051
-
- 13 8月, 2014 6 次提交
-
-
由 Sebastien Deleuze 提交于
This commit adds support for XML serialization/deserialization based on the jackson-dataformat-xml extension. When using @EnableWebMvc or <mvc:annotation-driven/>, Jackson will be used by default instead of JAXB2 if jackson-dataformat-xml classes are found in the classpath. This commit introduces MappingJackson2XmlHttpMessageConverter and MappingJackson2XmlView classes, and common parts between JSON and XML processing have been moved to AbstractJackson2HttpMessageConverter and AbstractJackson2View classes. MappingJackson2XmlView supports serialization of a single object. If the model contains multiple entries, MappingJackson2XmlView.setModelKey() should be used to specify the entry to serialize. Pretty print works in XML, but tests are not included since a Woodstox dependency is needed, and it is better to continue testing spring-web and spring-webmvc against JAXB2. Issue: SPR-11785
-
由 Juergen Hoeller 提交于
Issue: SPR-12079
-
由 Juergen Hoeller 提交于
Issue: SPR-12079
-
由 Phillip Webb 提交于
Issue: SPR-11167
-
由 Juergen Hoeller 提交于
Issue: SPR-11235
-
由 Juergen Hoeller 提交于
Issue: SPR-12078
-
- 12 8月, 2014 8 次提交
-
-
由 Juergen Hoeller 提交于
Issue: SPR-11430 Issue: SPR-11723
-
由 Juergen Hoeller 提交于
Issue: SPR-7521
-
由 Sebastien Deleuze 提交于
-
由 Juergen Hoeller 提交于
Upgrade to Gson 2.3
-
由 Roy Clarkson 提交于
This release contains the following new features: - The new @JsonAdapter annotation to specify a Json TypeAdapter for a class field - JsonPath support: JsonParser.getPath() method returns the JsonPath expression - New public methods in JsonArray (similar to the java.util.List): contains(JsonElement), remove(JsonElement), remove(int index), set(int index, JsonElement element) - Many other smaller bug fixes See: https://groups.google.com/forum/#!topic/google-gson/MOqf5RGtIzk
-
由 Sebastien Deleuze 提交于
-
由 Phillip Webb 提交于
Consistent use of BDDMockito rather than standard Mockito.
-
由 Juergen Hoeller 提交于
-
- 11 8月, 2014 4 次提交
-
-
由 Stephane Nicoll 提交于
Issue: SPR-9588
-
由 Stephane Nicoll 提交于
Issue: SPR-12073
-
由 Juergen Hoeller 提交于
-
由 Stephane Nicoll 提交于
This commit configures the SonarRunner plugin so that SonarQube can be used against the project. A few customizations were applied to namely exclude the asm and cglib repackaged classes. Issue: SPR-10766
-
- 10 8月, 2014 5 次提交
-
-
由 Juergen Hoeller 提交于
Issue: SPR-12075
-
由 Juergen Hoeller 提交于
InternalResourceViewResolver's exposure of context beans is now available at UrlBasedViewResolver level Issue: SPR-8064
-
由 Juergen Hoeller 提交于
JmsMessagingTemplate uses local convertJmsException template method instead of generic MessagingExceptionTranslator interface This commit also turns MessagingException into a NestedRuntimeException subclass which delivers a root message that has the cause message appended to it. That's a common expectation with the use of Spring exceptions since all of our exception hierarchies have historically been designed that way. Issue: SPR-12064 Issue: SPR-12038
-
由 Juergen Hoeller 提交于
Issue: SPR-9020
-
由 Juergen Hoeller 提交于
Issue: SPR-9020
-
- 09 8月, 2014 5 次提交
-
-
由 Juergen Hoeller 提交于
Issue: SPR-8959 Issue: SPR-11942
-
由 Juergen Hoeller 提交于
HibernateJpaDialect prepares JDBC Connection by default if on Hibernate EntityManager 4 (with its connection release mode ON_CLOSE) Analogous to HibernateTransactionManager, there is a "prepareConnection" flag on HibernateJpaDialect which allows for overriding the actual mode of operation. This is easily accessible from HibernateJpaVendorAdapter now which declares HibernateJpaDialect from its getJpaDialect() method. Issue: SPR-8959 Issue: SPR-11942
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Stephane Nicoll 提交于
-
- 08 8月, 2014 9 次提交
-
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-10459
-
由 Stephane Nicoll 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-10459
-
由 Juergen Hoeller 提交于
Issue: SPR-12065
-
由 Stephane Nicoll 提交于
-
由 Stephane Nicoll 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-12070
-