/**
* Counts the number of matches.
*/
- private int _matches = 0;
+ private int matches = 0;
public TestAuthorizationRule( AuthorizationResult aResult, String aGroup,
String aPath, Class<? extends Operation> aOperation) {
AuthorizationResult result = super.isAllowed(aResource, anOperation, aUser);
if ( result.equals(GRANTED) || result.equals(DENIED)) {
- _matches++;
+ matches++;
}
return result;
}
public int getMatchCount() {
- return _matches;
+ return matches;
}
public void reset() {
- _matches = 0;
+ matches = 0;
}
}