pull/32861/head
Andy Wilkinson 2 years ago
parent f767a45fc1
commit a533f4fa32

@ -151,7 +151,7 @@ class GraphQlWebFluxAutoConfigurationTests {
} }
@Test @Test
void routerFunctionShouldHaveOrderZero() throws Exception { void routerFunctionShouldHaveOrderZero() {
this.contextRunner.withUserConfiguration(CustomRouterFunctions.class).run((context) -> { this.contextRunner.withUserConfiguration(CustomRouterFunctions.class).run((context) -> {
Map<String, ?> beans = context.getBeansOfType(RouterFunction.class); Map<String, ?> beans = context.getBeansOfType(RouterFunction.class);
Object[] ordered = context.getBeanProvider(RouterFunction.class).orderedStream().toArray(); Object[] ordered = context.getBeanProvider(RouterFunction.class).orderedStream().toArray();

@ -158,7 +158,7 @@ class GraphQlWebMvcAutoConfigurationTests {
} }
@Test @Test
void routerFunctionShouldHaveOrderZero() throws Exception { void routerFunctionShouldHaveOrderZero() {
this.contextRunner.withUserConfiguration(CustomRouterFunctions.class).run((context) -> { this.contextRunner.withUserConfiguration(CustomRouterFunctions.class).run((context) -> {
Map<String, ?> beans = context.getBeansOfType(RouterFunction.class); Map<String, ?> beans = context.getBeansOfType(RouterFunction.class);
Object[] ordered = context.getBeanProvider(RouterFunction.class).orderedStream().toArray(); Object[] ordered = context.getBeanProvider(RouterFunction.class).orderedStream().toArray();

Loading…
Cancel
Save