mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polishing
This commit is contained in:
+1
@@ -153,6 +153,7 @@ class EnableCachingTests extends AbstractCacheAnnotationTests {
|
||||
ServiceWithMutableKey service = ctx.getBean(ServiceWithMutableKey.class);
|
||||
String result = service.find(new ArrayList<>(List.of("id")));
|
||||
assertThat(service.find(new ArrayList<>(List.of("id")))).isSameAs(result);
|
||||
ctx.close();
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -99,7 +99,7 @@ class PayloadApplicationEventTests {
|
||||
@Test
|
||||
@SuppressWarnings("resource")
|
||||
void testPayloadObjectWithPayloadType() {
|
||||
final NumberHolder payload = new NumberHolder<>(42);
|
||||
final NumberHolder<Integer> payload = new NumberHolder<>(42);
|
||||
|
||||
AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(NumberHolderListener.class) {
|
||||
@Override
|
||||
@@ -117,7 +117,7 @@ class PayloadApplicationEventTests {
|
||||
@Test
|
||||
@SuppressWarnings("resource")
|
||||
void testPayloadObjectWithPayloadTypeOnParentContext() {
|
||||
final NumberHolder payload = new NumberHolder<>(42);
|
||||
final NumberHolder<Integer> payload = new NumberHolder<>(42);
|
||||
|
||||
ConfigurableApplicationContext parent = new AnnotationConfigApplicationContext(NumberHolderListener.class);
|
||||
ConfigurableApplicationContext ac = new GenericApplicationContext(parent) {
|
||||
|
||||
Reference in New Issue
Block a user