Skip to content

Commit 9d461a0

Browse files
committed
Merge pull request #27405 from izeye
* gh-27405: Polish Closes gh-27405
2 parents 51fedd6 + 14d8c33 commit 9d461a0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/dynatrace/DynatracePropertiesConfigAdapterTests.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ void whenPropertiesDeviceIdIsSetAdapterDeviceIdReturnsIt() {
5454
}
5555

5656
@Test
57-
@Deprecated
5857
void whenPropertiesV1DeviceIdIsSetAdapterDeviceIdReturnsIt() {
5958
DynatraceProperties properties = new DynatraceProperties();
6059
properties.getV1().setDeviceId("dev-1");
@@ -113,21 +112,21 @@ void whenDeviceIdIsNotSetThenAdapterApiVersionIsV2() {
113112
}
114113

115114
@Test
116-
void whenPropertiesMetricKeyPrefixIsSetAdapterGroupReturnsIt() {
115+
void whenPropertiesMetricKeyPrefixIsSetAdapterMetricKeyPrefixReturnsIt() {
117116
DynatraceProperties properties = new DynatraceProperties();
118117
properties.getV2().setMetricKeyPrefix("my.prefix");
119118
assertThat(new DynatracePropertiesConfigAdapter(properties).metricKeyPrefix()).isEqualTo("my.prefix");
120119
}
121120

122121
@Test
123-
void whenPropertiesEnrichWithOneAgentMetadataIsSetAdapterGroupReturnsIt() {
122+
void whenPropertiesEnrichWithOneAgentMetadataIsSetAdapterEnrichWithOneAgentMetadataReturnsIt() {
124123
DynatraceProperties properties = new DynatraceProperties();
125124
properties.getV2().setEnrichWithDynatraceMetadata(true);
126125
assertThat(new DynatracePropertiesConfigAdapter(properties).enrichWithDynatraceMetadata()).isTrue();
127126
}
128127

129128
@Test
130-
void whenPropertiesDefaultDimensionsIsSetAdapterGroupReturnsIt() {
129+
void whenPropertiesDefaultDimensionsIsSetAdapterDefaultDimensionsReturnsIt() {
131130
DynatraceProperties properties = new DynatraceProperties();
132131
HashMap<String, String> defaultDimensions = new HashMap<>();
133132
defaultDimensions.put("dim1", "value1");

0 commit comments

Comments
 (0)