@Test public void ifCurrentValueEqualsToLimitItIsValid() { assertTrue(limitPolicy.isValid(10)); }
public boolean isValid(long currentValue) { return currentValue <= limit; }
HostRequestLimitPolicy { public boolean isValid(long currentValue) { return currentValue <= limit; } }
HostRequestLimitPolicy { public boolean isValid(long currentValue) { return currentValue <= limit; } HostRequestLimitPolicy(@Value("${quota.host.limit}") long limit); }
HostRequestLimitPolicy { public boolean isValid(long currentValue) { return currentValue <= limit; } HostRequestLimitPolicy(@Value("${quota.host.limit}") long limit); boolean isValid(long currentValue); }
HostRequestLimitPolicy { public boolean isValid(long currentValue) { return currentValue <= limit; } HostRequestLimitPolicy(@Value("${quota.host.limit}") long limit); boolean isValid(long currentValue);  }