- 24 6月, 2013 1 次提交
-
-
由 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 9 次提交
-
-
由 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
-
由 Sam Brannen 提交于
Prior to this commit it was possible for the method and requestURI fields in MockHttpServletRequest to be set to null. This commit ensures that the method and requestURI fields are internally stored as empty strings if the user sets them to a null value. Issue: SPR-10643
-
由 Sam Brannen 提交于
Prior to this commit, MockHttpServletRequest.getRequestURL() always included the server port number in the reconstructed request URL, even for implicit ports (i.e., 80 and 443) and negative ports. MockHttpServletRequest.getRequestURL() now omits the port number when reconstructing a URL that has an implicit or negative port. Issue: SPR-9726
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
This commit verifies that the return type of a parameterized instance factory method is properly resolved. Issue: SPR-10411
-
由 Sam Brannen 提交于
This commit verifies that JdbcTestUtils.readScript() properly handles SQL comments prefixed by tab characters. Issue: SPR-10330
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
This commit introduces a deleteFromTableWhere() convenience method in AbstractTransactionalJUnit4SpringContextTests and AbstractTransactionalTestNGSpringContextTests that delegates to the recently introduced method of the same name in JdbcTestUtils. Issue: SPR-10639
-
由 Sam Brannen 提交于
Issue: SPR-10638
-
- 08 6月, 2013 1 次提交
-
-
由 Sam Brannen 提交于
-
- 05 6月, 2013 2 次提交
-
-
由 Phillip Webb 提交于
Defer @Conditional processing on @Configuration classes until the bean definitions are loaded, rather than when the @Configuration class is parsed. This provides better support for @Conditional implementations that inspect bean definitions. This commit also fixes some minor problems with original implementation and replaces the ConditionalAnnotationHelper class with ConditionEvaluator. Issue: SPR-10534
-
由 Phillip Webb 提交于
Update ConfigurationClassUtils to only consider beans with @Bean methods as 'lite' configuration candidates. Prior to this commit all @Component beans were considered 'lite' configuration candidates which could result in a large number of ConfigurationClass instance being created that would ultimately be ignored. Issue: SPR-10609
-