Polishing
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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