Sam Brannen
e0d79f5dbb
Merge branch '5.2.x'
2020-08-10 11:36:19 +02:00
Sam Brannen
bd65762582
Polish Javadoc for MessagePostProcessor interfaces
...
See gh-25571
2020-08-10 11:26:41 +02:00
Philippe Marschall
6a7e58ac82
Add @FunctionalInterface to MessagePostProcessor
...
Add the @FunctionalInterface annotation to the MessagePostProcessor
interfaces in the spring-jms and spring-messaging projects.
Closes gh-25571
2020-08-10 11:19:35 +02:00
Juergen Hoeller
a1a9bb3e7f
Explicit note on phasing out serialization-based remoting
...
See gh-25379
2020-07-28 11:28:34 +02:00
Sam Brannen
335c3d5db6
Polish contribution
...
See gh-25445
2020-07-22 17:26:59 +02:00
XenoAmess
ab859fcc96
Refine use of substring operations
...
Closes gh-25445
2020-07-22 17:26:42 +02:00
Sam Brannen
a8901e3cf8
Polish contribution
...
See gh-25445
2020-07-22 16:36:14 +02:00
XenoAmess
edfc6c0293
Refine use of substring operations
...
Closes gh-25445
2020-07-22 16:28:58 +02:00
Sam Brannen
cdc234d7db
Polish contribution
...
See gh-25446
2020-07-22 14:06:29 +02:00
XenoAmess
c547809e89
Use instanceof instead of Class#isInstance where feasible
...
Closes gh-25446
2020-07-22 14:06:29 +02:00
Juergen Hoeller
e4e54b3c4a
Merge branch '5.2.x'
2020-07-19 20:01:21 +02:00
Juergen Hoeller
165a6f186d
Expose setExceptionListener on AbstractJmsListenerContainerFactory
...
Closes gh-22102
2020-07-19 19:53:01 +02:00
Brian Clozel
d9ccd618ea
Deprecate remoting technologies support
...
Because of security and broader industry support, support for several
remoting technologies is now deprecated and scheduled for removal in
Spring Framework 6.0.
This commit deprecates the following remoting technologies:
* HTTPInvoker
* RMI
* Hessian
* JMS remoting
Other remoting technologies like EJB or JAXWS might be deprecated in the
future depending on industry support.
Closes gh-25379
2020-07-10 12:04:24 +02:00
Sam Brannen
ab0e651547
Polish SerializationTestUtils, clean up warnings, etc.
2020-06-20 18:17:03 +02:00
Сергей Цыпанов
7949937655
Remove redundant assignment of default values to volatile fields
2020-06-17 10:50:51 +02:00
Sam Brannen
8099fc8178
Use try-with-resources language construct where feasible
...
Closes gh-2063
Co-authored-by: igor-suhorukov <igor.suhorukov@gmail.com >
2020-06-16 22:57:45 +02:00
Juergen Hoeller
e955e52f2f
Refactor method name dispatching to switch statements
...
Closes gh-25163
2020-05-29 23:07:25 +02:00
Sam Brannen
12e05280ad
Upgrade to AssertJ 3.16
2020-05-06 15:22:23 +02:00
陈其苗
13970ae528
Use autoboxing instead of explicit wrapping in tests
...
Closes gh-24801
2020-04-01 14:34:20 +02:00
Sam Brannen
e26764d249
Remove duplicate words in documentation and polish Javadoc
2020-03-31 12:17:58 +02:00
陈其苗
0463d7fcb9
Set proxyBeansMethod to false when no method is called
2020-03-23 15:42:23 +01:00
Juergen Hoeller
e0319b1f79
Raise log level for exceptions from EntityManager close call
...
Closes gh-24501
2020-02-12 16:48:42 +01:00
Sam Brannen
5581f3b77b
Use Gradle test fixture support for spring-tx
...
See gh-23550
2020-01-02 16:01:35 +01:00
Sam Brannen
7cd4ddf5fc
Rename test fixture package in spring-beans
...
See gh-23550
2020-01-02 16:01:35 +01:00
Sam Brannen
61d4ee594d
Use Gradle test fixture support for spring-beans and spring-context
...
See gh-23550
2020-01-02 16:01:34 +01:00
Gary Russell
63844c6d74
MappingJackson2MessageConverter: fix javadoc typo
...
`getJavaTypeForMessage()` - wrong parameter description.
2019-12-13 09:58:46 +01:00
Sam Brannen
9f00eb68e9
Clean up warnings
2019-10-30 19:14:58 +01:00
Phillip Webb
deba2ed1b3
Add blank line between java and javax imports
...
See gh-23539
2019-09-04 22:05:46 -07:00
Sam Brannen
ad6231ad29
Add missing @Override annotations
2019-08-23 13:50:58 +02:00
Sam Brannen
a07ce8eb82
Polishing
2019-08-23 13:50:57 +02:00
Sam Brannen
3e2b977d5d
Re-enable shadowed, overridden @Test and lifecycle methods
...
Due to a bug (or "unintentional feature") in JUnit 4, overridden test
and lifecycle methods not annotated with @Test, @Before, @After, etc.
are still executed as test methods and lifecycle methods; however,
JUnit Jupiter does not support that. Thus, prior to this commit, some
overridden test and lifecycle methods were no longer executed after the
migration from JUnit 4 to JUnit Jupiter.
This commit addresses this issue for such known use cases, but there
are likely other such use cases within Spring's test suite.
See gh-23451
2019-08-23 13:50:57 +02:00
Sam Brannen
3f3e41923f
Migrate rest of test suite from JUnit 4 to JUnit Jupiter
...
This commit migrates the rest of Spring's test suite to JUnit Jupiter,
except spring-test which will be migrated in a separate commit.
See gh-23451
2019-08-17 11:36:58 +02:00
Juergen Hoeller
8ef557df2f
Merge branch '5.1.x'
2019-07-30 17:34:29 +02:00
Juergen Hoeller
c4622dbebc
Polishing
2019-07-30 16:59:01 +02:00
Juergen Hoeller
0a77477d32
Merge branch '5.1.x'
2019-06-12 18:16:30 +02:00
Juergen Hoeller
fc46abf0b7
Polishing
2019-06-12 18:04:06 +02:00
Juergen Hoeller
7e02358166
Merge branch '5.1.x'
2019-06-12 00:05:01 +02:00
Juergen Hoeller
33b5bc2aae
Polishing
2019-06-11 23:50:29 +02:00
Juergen Hoeller
a89bfffd8c
Merge branch '5.1.x'
2019-06-11 23:16:03 +02:00
Juergen Hoeller
7dc92aa05d
Polishing
2019-06-11 20:57:27 +02:00
Sebastien Deleuze
098ac0bbb8
Annotate Object#equals parameter with @Nullable
...
Closes gh-23093
2019-06-06 14:18:30 +02:00
Сергей Цыпанов
aaeabc3c85
Simplify iteration over maps
...
Closes gh-23053
2019-05-29 18:00:34 +02:00
Sam Brannen
141ef9082f
Clean up Mockito usage
...
This commit migrates to the MockitoJUnitRunner where sensible, which
will later allow for an easier migration to Mockito's extension for
JUnit Jupiter.
In addition, this commit deletes unnecessary stubbing for various mocks
and polishes test fixture setup in various test classes.
2019-05-28 13:59:43 +02:00
Phillip Webb
9d74da006c
Migrate JUnit 4 assertions to AssertJ
...
Migrate all existing JUnit 4 `assert...` based assertions to AssertJ
and add a checkstyle rule to ensure they don't return.
See gh-23022
2019-05-23 15:52:49 -07:00
Phillip Webb
02850f357f
Migrate exception checking tests to use AssertJ
...
Migrate tests that use `@Test(expectedException=...)` or
`try...fail...catch` to use AssertJ's `assertThatException`
instead.
2019-05-20 10:47:53 -07:00
Juergen Hoeller
a363fed209
Merge branch '5.1.x'
2019-05-20 17:21:07 +02:00
Juergen Hoeller
52e02deb53
Configurable connection recovery in SimpleMessageListenerContainer
...
Closes gh-22987
2019-05-20 17:19:00 +02:00
Phillip Webb
798b51f4a3
Migrate to BDD Mockito
...
Migrate all tests to consistently use BDD Mockito. Also add
checksyle rule to enforce going forwards.
2019-05-08 13:46:13 -07:00
Phillip Webb
816bbee8de
Remove '.*' imports from tests
...
Organize test imports to expand all '.*' static imports into
fully qualified imports.
This update will allow us to use additional checkstyle rules in
the future, and will also help if we migrate fully to AssertJ.
2019-05-08 09:55:09 -07:00
Phil Webb
d7320de871
Migrate away from ExpectedException ( #22922 )
...
* Add limited checkstyles to test code
Add a limited set of checkstyle rules to the test codebase to improve
code consistency.
* Fix checksyle violations in test code
* Organize imports to fix checkstyle for test code
* Migrate to assertThatExceptionOfType
Migrate aware from ExpectedException rules to AssertJ exception
assertions. Also include a checkstyle rules to ensure that the
the ExpectedException is not accidentally used in the future.
See gh-22894
2019-05-08 16:25:52 +02:00