下面列出了org.springframework.boot.actuate.autoconfigure.metrics.CompositeMeterRegistryAutoConfiguration 类实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@Test
public void gatewayRSocketConfigured() {
new ReactiveWebApplicationContextRunner().withUserConfiguration(MyConfig.class)
.withSystemProperties("spring.cloud.gateway.rsocket.route-id=11")
.withConfiguration(
AutoConfigurations.of(RSocketStrategiesAutoConfiguration.class,
RSocketMessagingAutoConfiguration.class,
GatewayRSocketCommonAutoConfiguration.class,
GatewayRSocketAutoConfiguration.class,
CompositeMeterRegistryAutoConfiguration.class,
MetricsAutoConfiguration.class))
.run(context -> assertThat(context).hasSingleBean(RoutingTable.class)
.hasSingleBean(RoutingTableRoutes.class)
.hasSingleBean(RoutingTableSocketAcceptorFilter.class)
.hasSingleBean(GatewayServerRSocketFactoryProcessor.class)
.hasSingleBean(BrokerProperties.class)
.hasSingleBean(GatewaySocketAcceptor.class)
.hasSingleBean(SocketAcceptorPredicateFilter.class)
.hasSingleBean(RSocketServerBootstrap.class)
.doesNotHaveBean(SocketAcceptorPredicate.class));
}