Commit e7f100d5 authored by Andy Wilkinson's avatar Andy Wilkinson

Improve test coverage of PropertiesMeterFilter

Closes gh-14689
parent 171f78a9
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment