From 3c7465cb3547df9c5e9c02d87050cc1a63e50ac7 Mon Sep 17 00:00:00 2001 From: izeye Date: Mon, 16 May 2022 22:43:27 +0900 Subject: [PATCH] Polish OtlpPropertiesConfigAdapterTests See gh-31057 --- .../metrics/export/otlp/OtlpPropertiesConfigAdapterTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/otlp/OtlpPropertiesConfigAdapterTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/otlp/OtlpPropertiesConfigAdapterTests.java index 2f6bac5995..5a893c55ec 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/otlp/OtlpPropertiesConfigAdapterTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/otlp/OtlpPropertiesConfigAdapterTests.java @@ -30,14 +30,14 @@ import static org.assertj.core.api.Assertions.assertThat; class OtlpPropertiesConfigAdapterTests { @Test - void whenPropertiesUrlIsSetAdapterProjectIdReturnsIt() { + void whenPropertiesUrlIsSetAdapterUrlReturnsIt() { OtlpProperties properties = new OtlpProperties(); properties.setUrl("http://another-url:4318/v1/metrics"); assertThat(new OtlpPropertiesConfigAdapter(properties).url()).isEqualTo("http://another-url:4318/v1/metrics"); } @Test - void whenPropertiesResourceTypeIsSetAdapterResourceTypeReturnsIt() { + void whenPropertiesResourceAttributesIsSetAdapterResourceAttributesReturnsIt() { OtlpProperties properties = new OtlpProperties(); properties.setResourceAttributes(Map.of("service.name", "boot-service")); assertThat(new OtlpPropertiesConfigAdapter(properties).resourceAttributes()).containsEntry("service.name",