org.springframework.boot.actuate.autoconfigure.metrics.CompositeMeterRegistryAutoConfiguration源码实例Demo

类org.springframework.boot.actuate.autoconfigure.metrics.CompositeMeterRegistryAutoConfiguration源码实例Demo

下面列出了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));
}
 
源代码评论
动弹
沙发等你来抢
 类所在包
 类方法
 同包方法