Skip to content

Commit ef7c2bc

Browse files
committed
Merge branch '2.0.x'
2 parents 5d2828c + e7f100d commit ef7c2bc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/PropertiesMeterFilterTests.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ public void acceptWhenHasNoEnabledPropertiesShouldReturnNeutral() {
6767
.isEqualTo(MeterFilterReply.NEUTRAL);
6868
}
6969

70+
@Test
71+
public void acceptWhenHasNoMatchingEnabledPropertyShouldReturnNeutral() {
72+
PropertiesMeterFilter filter = new PropertiesMeterFilter(
73+
createProperties("enable.something.else=false"));
74+
assertThat(filter.accept(createMeterId("spring.boot")))
75+
.isEqualTo(MeterFilterReply.NEUTRAL);
76+
}
77+
7078
@Test
7179
public void acceptWhenHasEnableFalseShouldReturnDeny() {
7280
PropertiesMeterFilter filter = new PropertiesMeterFilter(

0 commit comments

Comments
 (0)