use of io.lettuce.core.tracing.Tracing in project spring-boot by spring-projects.
the class RedisAutoConfigurationTests method testCustomizeClientResources.
@Test
void testCustomizeClientResources() {
Tracing tracing = mock(Tracing.class);
this.contextRunner.withBean(ClientResourcesBuilderCustomizer.class, () -> (builder) -> builder.tracing(tracing)).run((context) -> {
DefaultClientResources clientResources = context.getBean(DefaultClientResources.class);
assertThat(clientResources.tracing()).isEqualTo(tracing);
});
}
Aggregations