Polishing

This commit is contained in:
Sam Brannen
2023-12-12 14:46:39 +01:00
parent 8de0fadd09
commit 1c58511cb2
8 changed files with 89 additions and 85 deletions

View File

@@ -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();
}

View File

@@ -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) {