From 14d8c331259fc39ba5bf335bc448718a6c10f2c8 Mon Sep 17 00:00:00 2001 From: izeye Date: Mon, 19 Jul 2021 22:20:16 +0900 Subject: [PATCH] Polish See gh-27405 --- .../dynatrace/DynatracePropertiesConfigAdapterTests.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/dynatrace/DynatracePropertiesConfigAdapterTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/dynatrace/DynatracePropertiesConfigAdapterTests.java index f6c72c60c8..01228edd86 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/dynatrace/DynatracePropertiesConfigAdapterTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/dynatrace/DynatracePropertiesConfigAdapterTests.java @@ -54,7 +54,6 @@ class DynatracePropertiesConfigAdapterTests { } @Test - @Deprecated void whenPropertiesV1DeviceIdIsSetAdapterDeviceIdReturnsIt() { DynatraceProperties properties = new DynatraceProperties(); properties.getV1().setDeviceId("dev-1"); @@ -113,21 +112,21 @@ class DynatracePropertiesConfigAdapterTests { } @Test - void whenPropertiesMetricKeyPrefixIsSetAdapterGroupReturnsIt() { + void whenPropertiesMetricKeyPrefixIsSetAdapterMetricKeyPrefixReturnsIt() { DynatraceProperties properties = new DynatraceProperties(); properties.getV2().setMetricKeyPrefix("my.prefix"); assertThat(new DynatracePropertiesConfigAdapter(properties).metricKeyPrefix()).isEqualTo("my.prefix"); } @Test - void whenPropertiesEnrichWithOneAgentMetadataIsSetAdapterGroupReturnsIt() { + void whenPropertiesEnrichWithOneAgentMetadataIsSetAdapterEnrichWithOneAgentMetadataReturnsIt() { DynatraceProperties properties = new DynatraceProperties(); properties.getV2().setEnrichWithDynatraceMetadata(true); assertThat(new DynatracePropertiesConfigAdapter(properties).enrichWithDynatraceMetadata()).isTrue(); } @Test - void whenPropertiesDefaultDimensionsIsSetAdapterGroupReturnsIt() { + void whenPropertiesDefaultDimensionsIsSetAdapterDefaultDimensionsReturnsIt() { DynatraceProperties properties = new DynatraceProperties(); HashMap defaultDimensions = new HashMap<>(); defaultDimensions.put("dim1", "value1");