Commit ef7c2bc6 authored by Andy Wilkinson's avatar Andy Wilkinson

Merge branch '2.0.x'

parents 5d2828c7 e7f100d5
...@@ -67,6 +67,14 @@ public class PropertiesMeterFilterTests { ...@@ -67,6 +67,14 @@ public class PropertiesMeterFilterTests {
.isEqualTo(MeterFilterReply.NEUTRAL); .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 @Test
public void acceptWhenHasEnableFalseShouldReturnDeny() { public void acceptWhenHasEnableFalseShouldReturnDeny() {
PropertiesMeterFilter filter = new PropertiesMeterFilter( 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