- 12 7月, 2016 11 次提交
-
-
由 Sam Brannen 提交于
This commit makes use of the new Supplier<String> variants of utility methods in org.springframework.util.Assert within the spring-test module. Issue: SPR-14450
-
由 Sam Brannen 提交于
This commit makes use of the new Supplier<String> variants of utility methods in org.springframework.util.Assert within the spring-core module. Issue: SPR-14450
-
由 Sam Brannen 提交于
Prior to this commit, utility methods in org.springframework.util.Assert accepted String arguments for custom error messages. Such Strings are evaluated (e.g., concatenated) eagerly, and for performance reasons, it was therefore not always possible to make use of these utility methods. Consequently, there are several places in the code base that "inline" identical functionality in order to lazily evaluate error message concatenation and avoid an unnecessary performance penalty. This leads to verbose code like the following. if (!contextPath.startsWith("/")) { throw new IllegalArgumentException("contextPath '" + contextPath + "' must start with '/'."); } if (contextPath.endsWith("/")) { throw new IllegalArgumentException("contextPath '" + contextPath + "' must not end with '/'."); } This commit addresses this shortcoming by introducing Supplier<String> variants of all utility methods in org.springframework.util.Assert that allow custom error messages to be evaluated lazily via a lambda expression that is only evaluated if the assertion fails. This results in a simplification of the previous examples as follows. Assert.isTrue(contextPath.startsWith("/"), () -> "contextPath '" + contextPath + "' must start with '/'."); Assert.isTrue(!contextPath.endsWith("/"), () -> "contextPath '" + contextPath + "' must not end with '/'."); Issue: SPR-14450
-
由 Sam Brannen 提交于
-
由 Brian Clozel 提交于
Issue: SPR-14247
-
由 Brian Clozel 提交于
-
由 Stephane Nicoll 提交于
-
由 Stephane Nicoll 提交于
* pr/1105: Polish doc
-
由 fisache 提交于
Closes gh-1105
-
由 Stephane Nicoll 提交于
* pr/1107: Polish doc
-
由 nkjackzhang 提交于
Closes gh-1107
-
- 11 7月, 2016 9 次提交
-
-
由 Sam Brannen 提交于
Issue: SPR-13794
-
由 Sam Brannen 提交于
This commit introduces 'before' and 'after' test execution callbacks in the Spring TestContext Framework. Specifically, this set of commits introduces the following. - beforeTestExecution() and afterTestExecution() callbacks in the TestExecutionListener API - beforeTestExecution() and afterTestExecution() callbacks in TestContextManager - RunBeforeTestExecutionCallbacks and RunAfterTestExecutionCallbacks JUnit 4 statements that are used by the SpringJUnit4ClassRunner - Documentation in the class-level Javadoc for SpringMethodRule stating that before/after test execution callbacks cannot be supported with JUnit 4 Rules - Support for JUnit Jupiter's BeforeTestExecutionCallback and AfterTestExecutionCallback extension APIs in the SpringExtension for JUnit 5 - Support for before/after test execution callbacks in AbstractTestNGSpringContextTests for TestNG Issue: SPR-4365
-
由 Sam Brannen 提交于
Issue: SPR-4365
-
由 Sam Brannen 提交于
Issue: SPR-4365
-
由 Sam Brannen 提交于
Issue: SPR-4365
-
由 Sam Brannen 提交于
Issue: SPR-4365
-
由 Sam Brannen 提交于
Issue: SPR-4365
-
由 Stephane Nicoll 提交于
-
由 Stephane Nicoll 提交于
This commit fixes the method that takes a Callable to actually always invoke it rather than returning null. Issue: SPR-14445
-
- 10 7月, 2016 1 次提交
-
-
由 Sam Brannen 提交于
This commit fixes a minor bug introduced in 0adc4921. Issue: SPR-14447
-
- 09 7月, 2016 1 次提交
-
-
由 Sam Brannen 提交于
Issue: SPR-14430
-
- 08 7月, 2016 12 次提交
-
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
Issue: SPR-14432
-
由 Sam Brannen 提交于
Issue: SPR-13188
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
Issue: SPR-14432
-
由 Juergen Hoeller 提交于
Issue: SPR-13794
-
由 Rossen Stoyanchev 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-14436
-
由 Sam Brannen 提交于
Issue: SPR-13188
-
由 Juergen Hoeller 提交于
Issue: SPR-14427
-
由 Stephane Nicoll 提交于
This commit removes `GuavaCache` and support classes. Caffeine supersedes the caching support in the Google Guava library with an actively maintained Java 8+ version in standalone form. As it is the only Guava feature Spring framework integrates with, this commit removes effectively any reference to Guava. Issue: SPR-13797
-
- 07 7月, 2016 6 次提交
-
-
由 Sam Brannen 提交于
SPR-14055 introduced first-class support for the Java 8 Parameter API. This commit therefore replaces the MethodParameterFactory with use of the new SynthesizingMethodParameter.forParameter(Parameter) factory method. Issue: SPR-13575
-
由 Sam Brannen 提交于
Issue: SPR-13575
-
由 Stephane Nicoll 提交于
* pr/1100: Remove trailing whitespaces Add the injection point for the Provider
-
由 Stephane Nicoll 提交于
Closes gh-1100
-
由 nkjackzhang 提交于
See gh-1100
-
由 Juergen Hoeller 提交于
-