mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Add public method to get bean order on DefaultListableBeanFactory
Closes gh-34712
This commit is contained in:
@@ -44,6 +44,9 @@ class Gh29105Tests {
|
||||
Stream<Class<?>> orderedTypes = child.getBeanProvider(MyService.class).orderedStream().map(Object::getClass);
|
||||
assertThat(orderedTypes).containsExactly(CustomService.class, DefaultService.class);
|
||||
|
||||
assertThat(child.getDefaultListableBeanFactory().getOrder("defaultService")).isEqualTo(0);
|
||||
assertThat(child.getDefaultListableBeanFactory().getOrder("customService")).isEqualTo(-1);
|
||||
|
||||
child.close();
|
||||
parent.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user