Sam Brannen
a42944d364
Consolidate TxMgr lookup tests in the TCF
...
This commit consolidates TransactionManager lookup tests in the Spring
TestContext Framework (TCF), migrates some to JUnit Jupiter, simplifies
their implementations, and removes duplicated test cases.
2020-04-06 18:21:48 +02:00
Sam Brannen
1d0c5195bc
Polish Javadoc for TransactionManagementConfigurer
2020-04-06 15:31:48 +02:00
Sam Brannen
144b0e1437
Test status quo for @Primary + TransactionManagementConfigurer
...
This commit introduces tests for the status quo in production support
for multiple transaction managers registered as @Primary and via the
TransactionManagementConfigurer API.
See gh-24869
2020-04-06 15:16:31 +02:00
Sam Brannen
dc5ddffd03
Polishing
2020-04-06 14:42:23 +02:00
Sam Brannen
f8ab19dc68
Ensure @EnableTxMgmt tests actually test something
2020-04-06 14:32:34 +02:00
Qimiao Chen
fd8d11c7e3
Use single String instead of String[] for varargs argument
...
Closes gh-24864
2020-04-04 20:05:19 +02:00
Juergen Hoeller
251501587b
Consistent nullability of arguments array in JdbcOperations/Template
...
Closes gh-24839
2020-04-03 21:15:00 +02:00
Juergen Hoeller
6177e38eb6
Close-suppressing Connection proxy exposes target isClosed() state
...
Closes gh-24853
2020-04-03 21:13:53 +02:00
Juergen Hoeller
a70ad0094f
Clear by-type cache in case of no pre-existing bean definition as well
...
Closes gh-24852
2020-04-03 21:12:03 +02:00
Juergen Hoeller
151a18d691
Explicit notes on BeanFactory.getType vs bean class in bean definition
...
Closes gh-24816
2020-04-03 21:11:07 +02:00
Juergen Hoeller
8595f01e44
Polishing
2020-04-03 21:08:45 +02:00
Moran Avigdor
7d5e474e0d
Recursively copy directory with symbolic link
...
The following modification will also recursively traverse the directory that the symbolic link points to.
This modification is not proposed for deleteRecursively, since it can be harmful if not intended.
This modification relates to the following commit:
Consistent use of NIO.2 for file read/write interactions
Issue: SPR-15748
12114a9
2020-04-03 21:05:26 +02:00
Sam Brannen
9f0ce09cf0
Update copyright date
2020-04-02 16:33:50 +02:00
Sam Brannen
0636ba68d7
Fix Javadoc in PathPattern ( #24841 )
...
* corrected javadoc
* Revert change to PathPattern Javadoc
Co-authored-by: Sam Brannen <sbrannen@pivotal.io >
2020-04-02 16:29:27 +02:00
Sam Brannen
c9e13d448a
Revert change to PathPattern Javadoc
2020-04-02 16:28:26 +02:00
Rossen Stoyanchev
897557fd1b
Fix faulty tests
...
The tests were doing Callable async request processing in the main
thread which was already bound (via HandlerInterceptor#preProcess).
This leads to an ISE from TransactionSynchronizationManager#bindResource
but it went unnoticed because there is no Servlet container and no
async dispatch to continue processing.
See gh-24835
2020-04-02 09:31:00 +01:00
Rossen Stoyanchev
6f0a76a65f
Polishing
...
See gh-24835
2020-04-02 08:34:44 +01:00
Gurps Bassi
4aca91c3b0
corrected javadoc
2020-04-01 22:05:53 +01:00
Rossen Stoyanchev
7d0f48289b
Improve error handling in WebAsyncManager
...
See gh-24835
2020-04-01 18:35:22 +01:00
Sam Brannen
a842434bff
Document precedence for @DynamicPropertySource
...
Closes gh-24837
2020-04-01 18:09:31 +02:00
Jay Bryant
b7eb983107
Update to spring-doc-resources version 0.2.0
...
This commit updates the spring-doc-resources version to 0.2.0 to get the
latest look and feel in the HTML version of the reference manual.
Closes gh-24831
2020-04-01 14:52:58 +02:00
陈其苗
13970ae528
Use autoboxing instead of explicit wrapping in tests
...
Closes gh-24801
2020-04-01 14:34:20 +02:00
Sam Brannen
d8567749b8
Fix Javadoc
2020-03-31 19:14:56 +02:00
Sam Brannen
01cf0a3d4e
Polish MBeanClientInterceptorTests and recover two lost tests
...
Two test methods were missing the @Test annotation after the migration
from JUnit 3 to JUnit 4.
2020-03-31 19:02:15 +02:00
Sam Brannen
9bd74c270f
Remove flaky check in MBeanClientInterceptorTests
...
Prior to this commit, the testTestLazyConnectionToRemote() method in
MBeanClientInterceptorTests expected an exception to be thrown while
attempting to access the state of a proxied MBean after the MBeanServer
had been shutdown; however, the test occasionally failed if the server
had not been properly shutdown.
Since an attempt to wait on the server to shutdown proved not to be
consistently helpful in this scenario, we are entirely removing this
check from the test.
2020-03-31 18:55:54 +02:00
Sam Brannen
89d282125a
Ensure logPrefix is not null or blank in AbstractListenerWriteProcessor
2020-03-31 18:49:05 +02:00
Sam Brannen
e87ab6f4ee
Update Javadoc for AbstractListenerWriteProcessor.write()
...
Co-authored-by: Rossen Stoyanchev <rstoyanchev@pivotal.io >
2020-03-31 18:47:06 +02:00
Rossen Stoyanchev
99c2b1e242
Add snippet for maxInMemorySize config
...
See gh-23961
2020-03-31 17:08:12 +01:00
Juergen Hoeller
1795a6ad0a
Upgrade to Hibernate ORM 5.4.13, Apache Johnzon 1.2.4, OpenPDF 1.3.14, Woodstox 6.1.1
2020-03-31 16:44:02 +02:00
Sam Brannen
ddaf0029ae
Polishing
2020-03-31 16:31:34 +02:00
Rossen Stoyanchev
95ef9c25c2
Reduce byte[] allocations in StompEncoder
...
Closes gh-24694
2020-03-31 12:56:10 +01:00
Sam Brannen
329f08ad08
Suppress warnings in Gradle build
2020-03-31 12:17:58 +02:00
Sam Brannen
e26764d249
Remove duplicate words in documentation and polish Javadoc
2020-03-31 12:17:58 +02:00
Sam Brannen
53106d5741
Polishing
2020-03-31 10:40:04 +02:00
Juergen Hoeller
3ad42aa983
Upgrade to Tomcat 9.0.33, FreeMarker 2.3.30, Apache HttpClient 4.5.12, WebJars Locator 0.44, JRuby 9.2.11.1
2020-03-30 19:04:06 +02:00
Taehee Kim
8b3521d2bf
Fix typo in webflux-cors.adoc
...
Closes gh-24815
2020-03-30 14:00:25 +02:00
Sam Brannen
ee42e3e730
Polish StreamUtils
2020-03-30 13:57:09 +02:00
Sam Brannen
9e30620ac2
Polish contribution
...
See gh-24805
2020-03-30 13:47:00 +02:00
Сергей Цыпанов
e63d1cf12d
Improve usage of ByteArrayOutputStream/ByteArrayInputStream
...
Closes gh-24805
2020-03-30 13:22:21 +02:00
Qimiao Chen
821984a5cf
Remove unnecessary assignment in PropertiesBeanDefinitionReader
...
Closes gh-24804
2020-03-30 12:41:19 +02:00
Qimiao Chen
f8ff4e42b9
Use try-with-resource to close resources
...
Closes gh-24807
2020-03-30 12:05:29 +02:00
Qimiao Chen
7c831d2ef4
Replace anonymous inner classes with lambdas in tests
...
Closes gh-24808
2020-03-30 12:02:23 +02:00
Qimiao Chen
7db00c9e22
Remove incorrect @Nullable in DynamicPropertiesContextCustomizer
...
Closes gh-24796
2020-03-28 15:29:01 +01:00
Qimiao Chen
5d6139eb7a
Set initialValue of NamedThreadLocal in XmlBeanDefinitionReader
...
This commit overrides initialValue() of NamedThreadLocal to lazily initialize
the set used in XmlBeanDefinitionReader.
Closes gh-24800
2020-03-27 14:58:55 +01:00
Sam Brannen
06fa8692cd
Attempt to make MBeanClientInterceptorTests more robust
2020-03-27 11:18:45 +01:00
Qimiao Chen
c77853b766
Remove unnecessary mem alloc in CollectingReaderEventListener
...
Closes gh-24799
2020-03-27 11:00:05 +01:00
Rossen Stoyanchev
a606fb4b21
Fix checkstyle errors
2020-03-26 22:02:32 +00:00
Rossen Stoyanchev
6f1ea14718
Merge pull request #24786 from stsypanov/data-buffer
...
Closes gh-24786
2020-03-26 21:42:33 +00:00
Rossen Stoyanchev
3175f0771e
Remove dumpString from DataBufferTestUtils
...
See gh-24786
2020-03-26 21:42:12 +00:00
Rossen Stoyanchev
7aa06b8610
Polishing contribution
...
See gh-24786
2020-03-26 21:42:12 +00:00