- 27 6月, 2013 2 次提交
-
-
由 Phillip Webb 提交于
Issue: SPR-10587
-
由 Phillip Webb 提交于
Effectively rename HttpHeaders.getIfNotModifiedSince() to getIfModifiedSince() by adding a new method and deprecating the old one. Issue: SPR-10600
-
- 26 6月, 2013 3 次提交
-
-
由 Phillip Webb 提交于
Refine the SQL statements contained in exceptions thrown from batch updates based on BatchUpdateException.getUpdateCounts(). Issue: SPR-10677
-
由 Phillip Webb 提交于
Update the reference guide jdbcTemplate update example to include the column name. Issue: SPR-10625
-
由 Phillip Webb 提交于
Ensure any exception from calls to batchUpdate, on databases that support batch operations, contains all the SQL statements. Prior to this commit only the last SQL statement would be returned with the exception. Issue: SPR-10677
-
- 25 6月, 2013 4 次提交
-
-
由 Phillip Webb 提交于
# By Nick Williams * SPR-10644: Improving method validation support for BV 1.1
-
由 Nick Williams 提交于
Update MethodValidationPostProcessor.setValidator(...) to use LocalValidatorFactoryBean.getValidator() when possible. This is required because LocalValidatorFactoryBean does not directly implement the forExecutables() method introduced in bean validation v1.1. Issue: SPR-10644
-
由 Phillip Webb 提交于
Update the cached MethodExecutor in MethodReference to include the method argument types. Prevents the incorrect use of the cache when the SpEL expression refers to a class that has overloaded methods. Issue: SPR-10657
-
由 Phillip Webb 提交于
-
- 24 6月, 2013 3 次提交
-
-
由 Phillip Webb 提交于
Ensure RmiInvocationWrapperRTD.xml is packaged inside spring-context.jar Issue: SPR-10649
-
由 Phillip Webb 提交于
Allow the @CachePut 'key' SpEL to refer to the result of the method call via a '#result' variable. This change is particularly useful when working with JPA entities that have generated @Id values since the ID will often not be available until the entity has been saved. Issue: SPR-10664
-
由 Phillip Webb 提交于
Polish cache abstraction code and refactor CacheAspectSupport.
-
- 23 6月, 2013 1 次提交
-
-
由 Sam Brannen 提交于
-
- 22 6月, 2013 1 次提交
-
-
由 Phillip Webb 提交于
Introduce new SimpleKeyGenerator class to supersede DefaultKeyGenerator. Unlike DefaultKeyGenerator, no collisions will occur with the keys generated by SimpleKeyGenerator as the full parameter values are considered within the SimpleKey.equals(...) method. The SimpleKeyGenerator is now the default class used when no explicit generator is configured. Issue: SPR-10237
-
- 21 6月, 2013 9 次提交
-
-
由 Phillip Webb 提交于
Update queryForObject calls in the JDBC reference documentation to use 'Integer.class' rather than the unsupported 'int.class'. Issue: SPR-10651
-
由 Phillip Webb 提交于
Update BeanFactory.getBeansWithAnnotation() to skip any abstract bean definitions. Issue: SPR-10663
-
由 Phillip Webb 提交于
Add EnhancedConfigurationBeanPostProcessor to inject the BeanFactory into EnhancedConfiguration classes before the AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues method is called. Prior to this commit it was possible for @Autowire in a @Configuration class to invoke an enhanced configuration class method before the BeanFactory was injected. This is due to the fact that the AutowiredAnnotationBeanPostProcessor was called before AbstractAutowireCapableBeanFactory.invokeAwareMethods(). Issue: SPR-10668
-
由 Rossen Stoyanchev 提交于
Issue: SPR-10519
-
由 Rossen Stoyanchev 提交于
Issue: SPR-10603
-
由 Rossen Stoyanchev 提交于
Issue: SPR-10390
-
由 Rossen Stoyanchev 提交于
Issue: SPR-10041, SPR-10652
-
由 Phillip Webb 提交于
Add 'mvc:' namespace prefix to 'mapping' and 'exclude-mapping' elements in the reference documentation. Issue: SPR-10670
-
由 Rossen Stoyanchev 提交于
SPR-10402 in Spring Framework 3.2.3 treated empty request parameter values as missing values, if the empty value was turned into a null by a PropertyEditor or Converter. This caused the regression. Issue: SPR-10578, SPR-10402, SPR-10584
-
- 19 6月, 2013 2 次提交
-
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
-
- 17 6月, 2013 4 次提交
-
-
由 Sam Brannen 提交于
Prior to this commit, the longValue() in HeaderResultMatchers added the expected response header name to generated assertion failure messages; however, both string() methods did not. This made it more difficult to analyze the cause of failed tests. Furthermore, while investigating a solution for this issue it became apparent that longValue() throws a NullPointerException if the response does not contain the specified header. This commit addresses these issues as follows: - All methods in HeaderResultMatchers now include the response header name in generated assertion failure messages. - HeaderResultMatchers.longValue() now avoids NullPointerExceptions by explicitly asserting that the response contains the specified header. - The unit tests in HeaderAssertionTests have been expanded to test most foreseeable use cases. Issue: SPR-10659
-
由 Sam Brannen 提交于
This commit deletes the remaining JUnit 3.8 tests in the spring-test module that were still subclassing deprecated class hierarchies. Issue: SPR-10499
-
由 Sam Brannen 提交于
This commit relocates MockMultipartHttpServletRequestTests to the appropriate package.
-
由 Sam Brannen 提交于
-
- 16 6月, 2013 4 次提交
-
-
由 Sam Brannen 提交于
This commit refactors ContextLoaderUtilsTests into AbstractContextLoaderUtilsTests and several specialized subclasses in order to reduce to the growing complexity of ContextLoaderUtilsTests.
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
* SPR-10338: Introduce ActiveProfilesResolver in the TCF
-
由 Sam Brannen 提交于
Prior to this commit, the active bean definition profiles to use when loading an ApplicationContext for tests could only be configured declaratively (i.e., via hard-coded values supplied to the 'value' or 'profiles' attribute of @ActiveProfiles). This commit makes it possible to programmatically configure active bean definition profiles in tests via a new ActiveProfileResolver interface. Custom resolvers can be registered via a new 'resolver' attribute introduced in @ActiveProfiles. Overview of changes: - Introduced a new ActiveProfilesResolver API. - Added a 'resolver' attribute to @ActiveProfiles. - Updated ContextLoaderUtils.resolveActiveProfiles() to support ActiveProfilesResolvers. - Documented these new features in the reference manual. - Added new content to the reference manual regarding the 'inheritProfiles' attribute of @ActiveProfiles - Removed the use of <lineannotation> Docbook markup in the testing chapter of the reference manual for Java code examples in order to allow comments to have proper syntax highlighting in the generated HTML and PDF. Issue: SPR-10338
-
- 15 6月, 2013 2 次提交
-
-
由 Sam Brannen 提交于
* SPR-8032: Introduce TCP & UDP server port scanning utility
-
由 Sam Brannen 提交于
Prior to this commit the Spring Framework did not provide a public means for scanning for available server ports. However, the Spring Framework internally used a FreePortScanner in integration tests within its own test suite. Furthermore, Spring Integration 2.2 provides similar support in a SocketUtils class in the spring-integration-test module. This commit introduces SocketUtils in spring-core to replace the FreePortScanner which was previously only used internally within Spring's test suite. This new implementation is inspired by both Spring Framework's FreePortScanner and Spring Integration's SocketUtils and consequently attempts to merge the best of both previous implementations. Issue: SPR-8032
-
- 14 6月, 2013 1 次提交
-
-
由 Sam Brannen 提交于
-
- 13 6月, 2013 2 次提交
-
-
由 Phillip Webb 提交于
Make ConfigurationClassPostProcessor Ordered.HIGHEST_PRECEDENCE in case several BeanDefinitionRegistryPostProcessors are registered. Issue: SPR-10645
-
由 Phillip Webb 提交于
Introduce new ConfigurationCondition interface allowing more fine-grained control for @Conditional when used with @Configuration beans. Primarily added so that the evaluation of conditions that inspect bean definitions can be deferred until all @Configuration classes have been parsed. Issue: SPR-10534
-
- 11 6月, 2013 1 次提交
-
-
由 Phillip Webb 提交于
Update ConfigurationClassParser to fall-back to ASM parsing if standard annotation processing fails. This change allows @Conditional annotations that refer to missing classes to work. This commit also introduces a new inner SourceClass object that encapsulates the conditional logic required when reading the source classes. Issue: SPR-10646
-
- 09 6月, 2013 1 次提交
-
-
由 Sam Brannen 提交于
The Javadoc for several methods in HttpSession specifies that an IllegalStateException must be thrown if the method is called on an invalidated session; however, Spring's MockHttpSession did not implement this behavior consistently prior to this commit. This commit therefore ensures that the following methods in MockHttpSession properly throw an IllegalStateException as defined in the Servlet specification. - long getCreationTime() - long getLastAccessedTime() - Object getAttribute(String) - Object getValue(String) - Enumeration<String> getAttributeNames() - String[] getValueNames() - void setAttribute(String, Object) - void putValue(String , Object) - void removeAttribute(String) - void removeValue(String) - void invalidate() - boolean isNew() Issue: SPR-7659
-