From dedbbf0a7908c33a27e717ff3ffbc46848ff9b02 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 8 Nov 2022 12:04:56 +0100 Subject: [PATCH] Avoid warnings in tests --- .../org/springframework/context/annotation/Gh29105Tests.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-context/src/test/java/org/springframework/context/annotation/Gh29105Tests.java b/spring-context/src/test/java/org/springframework/context/annotation/Gh29105Tests.java index e954f5e989f..f4955d7df49 100644 --- a/spring-context/src/test/java/org/springframework/context/annotation/Gh29105Tests.java +++ b/spring-context/src/test/java/org/springframework/context/annotation/Gh29105Tests.java @@ -30,7 +30,7 @@ import static org.assertj.core.api.Assertions.assertThat; * * @author Stephane Nicoll */ -public class Gh29105Tests { +class Gh29105Tests { @Test void beanProviderWithParentContextReuseOrder() { @@ -47,6 +47,7 @@ public class Gh29105Tests { List> orderedTypes = child.getBeanProvider(MyService.class) .orderedStream().map(Object::getClass).collect(Collectors.toList()); assertThat(orderedTypes).containsExactly(CustomService.class, DefaultService.class); + child.close(); } @@ -78,4 +79,5 @@ public class Gh29105Tests { } } + }