mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 01:39:02 +00:00
Improve test coverage of PropertiesMeterFilter
Closes gh-14689
This commit is contained in:
+8
@@ -71,6 +71,14 @@ public class PropertiesMeterFilterTests {
|
||||
.isEqualTo(MeterFilterReply.NEUTRAL);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void acceptWhenHasNoMatchingEnabledPropertyShouldReturnNeutral() {
|
||||
PropertiesMeterFilter filter = new PropertiesMeterFilter(
|
||||
createProperties("enable.something.else=false"));
|
||||
assertThat(filter.accept(createMeterId("spring.boot")))
|
||||
.isEqualTo(MeterFilterReply.NEUTRAL);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void acceptWhenHasEnableFalseShouldReturnDeny() {
|
||||
PropertiesMeterFilter filter = new PropertiesMeterFilter(
|
||||
|
||||
Reference in New Issue
Block a user